DDC-624: Partial object query that leaves out an association to avoid loading it fetches the association anyway. #5133

Open
doctrinebot opened this Issue Jun 3, 2010 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user romanb:

Assuming:

Customer Cart

where Cart is the owning side.

Since the association from Customer to Cart can not be lazy, it would make sense to leave out the association in a query to avoid loading the carts like this:

select partial c.{id,name, ... anything except cart} from Customer c"

But this is ignored and the carts of all customers are fetched anyway. Query::HINTFORCE_PARTIALLOAD is an alternative solution, however it has the disadvantage that it disables lazy-loading for all queried objects. If partial querying would honor associations this would allow more fine-grained control.

@doctrinebot

Comment created by romanb:

Might need to be pushed back to a 2.0.x / 2.x.x bugfix release. Not clear yet.

@doctrinebot doctrinebot added this to the 2.x milestone Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment