Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow override of fetch for associations #5934
There's currently no way to change the fetch mode after the association has been added to the mapping. In the case when a 3rd party creates a mapping for a collection that is mapped extra lazy, there's no way to change it to be eagerly fetched instead in application level code.
I suggest adding this to the association-overrides options.
I think adding this to the following method and extending the annotation should do the job: https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php#L2140-L2182