mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Implement pluggable fetch mode strategies #5732
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 @guilhermeblanco on GitHub (Oct 5, 2017).
Our current
FetchModesupport is too intermixed with UnitOfWork and Hydrators.Data fetching strategies should be blended as a hooking system that allow us to plug in different ways that an Entity gets loaded and act accordingly.
This might require the use of a faster and slimmer Event system in different parts of Doctrine codebase, allowing us to hook as needed.
As an inspiration of different fetching strategies (and how they behave internally, please refer to http://docs.sqlalchemy.org/en/latest/orm/loading_relationships.html ).