mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Lazy Fields automatically create Partial Objects omitting columns from initial load. #7570
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beberlei on GitHub (Nov 5, 2025).
With native lazy loading support and partial objects as lazy objects, another feature that we could "easily" implement is marking columns as lazy, which would automatically make an entity a partial object.
This also requires a way to specify that an object should be "FULLY" loaded from the beginning, i don't. have a complete idea on how to do that, multiple options:
SELECT FULL p FROM Post p$hintsto finder methods,$entityManager->find(1, hints: [Query::HINT_FORCE_FULL_LOAD => true])or ssomething similar.Related: