Partial native lazy objects landed in Doctrine ORM 3.7-dev What does that mean? ...
Benjamin Eberlei @beberlei@phpc.social
Partial native lazy objects landed in Doctrine ORM 3.7-dev
What does that mean?
SELECT PARTIAL u.{id, name} FROM User u WHERE u.id = ?
will now perform an extra query to load any other field than id and name that is accessed after the initial loading query, for example $user->email. previously this field was null.
This fixes hard to debug partial object bugs, makes the object graph traversal predictable, and will allow us to add support for always lazy fields.