doctrine/doctrine2 — comment on commit c6a3ff4da54e904311e87a2fcaa37906aed61582
File: lib/Doctrine/ORM/UnitOfWork.php line 438
By guilhermeblanco:

In this situation it is valid, I agree and we should change the code.

But other places it's generally an object. Object instances are always treated by reference, so the ternary copy is not valid.
Thanks for pointing out... I may have missed this one. =)