Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 2.2.2
-
Fix Version/s: None
-
Component/s: ORM
-
Labels:None
-
Environment:Windows + latest XAMPP
Description
I am getting the fatal error "Call to a member function toArray() on a non-object" which is triggered in Doctrine/ORM/PersistentCollection.php on line 239 by $this->snapshot = $this->coll->toArray();
{{
SELECT i, c FROM Page i
LEFT JOIN i.children c
WHERE i.parent_id IS NULL
AND i.site = ?1
ORDER BY i.id ASC
}}
The association is self-referential on the column parent_id. Removing "LEFT" from the query makes is run successfully (but ofc not in the way I need it). Making it only select 'i' instead of 'i, c' also solves it. But I don't think it's wrong in it's current form is it?
The Entity (slightly truncated to remove personal/local info) is at http://scrp.at/bvl
Activity
Benjamin Eberlei
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Workflow | jira [ 13780 ] | jira-feedback [ 14079 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 14079 ] | jira-feedback2 [ 15943 ] |
Alexander
made changes -
| Status | Open [ 1 ] | Awaiting Testcase/Feedback [ 10000 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 15943 ] | jira-feedback3 [ 18210 ] |
Benjamin Eberlei
made changes -
| Status | In Progress [ 3 ] | Awaiting Feedback [ 10000 ] |
Benjamin Eberlei
made changes -
| Status | Awaiting Feedback [ 10000 ] | In Progress [ 3 ] |
Benjamin Eberlei
made changes -
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
| Resolution | Cannot Reproduce [ 5 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- 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-1875, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
can you paste the full stack trace when the error occurs? Xdebug shows this.