In my db I have data that I've defined by field "type" like:
const TYPE_ONE = 'one';
const TYPE_TYPE = 'two';
I want to return all results where I have defined value of "type" filed by this two constants and not all of them. ( like (NULL) type).
It seems OR operator is not supported.
My code:
return $this->getMyEntityRepository()->findBy([
'type' => MyEntity::TYPE_ONE || MyEntity::TYPE_TWO
]);