Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 2.0-ALPHA2
-
Fix Version/s: None
-
Component/s: DQL
-
Security Level: All
-
Labels:None
Description
I have a classes B and C which inherit from superclass A. I would like
to get a list of all A's but filter the list to ignore those in C
which have a property d set to 2.
select a from A where a.d == 2 fails because "d" is not a property of A.
Issue Links
- is duplicated by
-
DDC-1377
Doctrine doesn't understand associations from SINGLE_TABLE inheritances
-
Activity
Roman S. Borschel
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.0 [ 10021 ] |
Roman S. Borschel
made changes -
| Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
| Priority | Major [ 3 ] | Minor [ 4 ] |
Roman S. Borschel
made changes -
| Fix Version/s | 2.0 [ 10021 ] |
Benjamin Eberlei
made changes -
Guilherme Blanco
made changes -
| Assignee | Roman S. Borschel [ romanb ] | Guilherme Blanco [ guilhermeblanco ] |
Guilherme Blanco
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Guilherme Blanco
made changes -
| Status | In Progress [ 3 ] | Open [ 1 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 10070 ] | jira-feedback [ 13832 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 13832 ] | jira-feedback2 [ 15696 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 15696 ] | jira-feedback3 [ 17953 ] |
Marco Pivetta
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Guilherme Blanco [ guilhermeblanco ] | Marco Pivetta [ ocramius ] |
| Resolution | Won't Fix [ 2 ] |
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-16, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Thats indeed tricky. That syntax alone can, however, never work, because there might be several subclasses that have a field named "d", so Doctrine would not know which field you mean.
We might need special syntax for such constructs but I'm not sure it is worth it. If anyone has an idea, just shoot.
Alternatively, apart from using a native query, what about this DQL: