Can Doctrine hydrate my entity with a custom scalar values (e.g. aggregate, CASE result, etc) out of the box? – PHP
If I have a Querybuilder instance and apply something like this: $queryBuilder->addSelect(" CASE WHEN c.modifyStamp > c.createStamp THEN 'draft' ELSE 'published' END AS state "); then, on using getResult, I will get something like this: [ 0 => [ 0…