Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-16

DQL Ignores properties of subclasses

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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

          Activity

          Avi Block created issue -
          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 -
          Link This issue is duplicated by DDC-1377 [ DDC-1377 ]
          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 ]

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Avi Block
            • Votes:
              6 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: