Details
Description
After upgrading to 2.1.4 (from 2.1.2), the following dql started creating way more queries than necessary :
SELECT m, p, s, c, o
FROM FERMainBundle:Menu m
LEFT JOIN m.page p
LEFT JOIN m.section s
LEFT JOIN m.children c
LEFT JOIN s.position o
ORDER BY m.lft
Details to the code here:
http://pastie.textmate.org/private/z9gtgqe1odwenxcmudywqa
The model looks like that:
http://pastie.textmate.org/private/przxzfimsfyua02cxqcv9a
http://pastie.textmate.org/private/ob1jqiekv89e4xj9bq06q
First query is executed, it should in fact retrieve everything there is about the menu, but then it runs the second query for every menu element I have, generating a lot of queries that didn't occur before.
Issue Links
- is duplicated by
-
DDC-1573
Simple relation hydratation not working properly
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Priority | Major [ 3 ] | Critical [ 2 ] |
| Attachment | trace.txt [ 11133 ] |
| Attachment | trace.txt [ 11134 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 2.1.6 [ 10182 ] | |
| Fix Version/s | 2.2 [ 10157 ] | |
| Resolution | Fixed [ 1 ] |
| Workflow | jira [ 13250 ] | jira-feedback [ 15139 ] |
| Workflow | jira-feedback [ 15139 ] | jira-feedback2 [ 17003 ] |
| Workflow | jira-feedback2 [ 17003 ] | jira-feedback3 [ 19256 ] |
| Comment | [ Ca I get a face palm :P ] |
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1526, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Can you profile where exactly the extra queries are executed using xdebug_start_trace? Directly during hydration or later in your code?