Is there a possibility to execute something like:
$builder = $this->getEntityManager()->createQueryBuilder();
$builder->select(
'f.id',
...
'NULL AS missing_attribute'
)
->from(..., 'f')
...;
And avoid:
Doctrine\ORM\Query\QueryException: ... got 'NULL'