I need to query an mysql array type with php array by using doctrine.
This my db column is dc2 type array and contains values like this.
a:1:{i:0;s:3:"4wd";}
And this is my querybuilder query,
$qb = $this->createQueryBuilder('c');
$qb->andWhere('c.equipment IN (:equipment)')
->setParameter('equipment', array('4wd'));
$qb->getQuery()->getResult();
But unfortunately this query returns only null output. It would be great if someone can help solve this.