I have this actual code
public function findCode($code_received)
{
$pellicules =
$this->createQueryBuilder()
->field('code_base')->equals($code_received)
->getQuery()
;
}
But sometimes my code received is inside my code_base, for example:
Code_received = Abata
Code_base = Abata23xiub
I tried to use the in
instead of equals
but I'm not having success. How could I do it?