Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0BETA2
    • Fix Version/s: None
    • Component/s: Query Builder
    • Labels:
    • Environment:
      MongoDB shell version: 2.4.6

      Description

      Problem explained below as an example.
      Suppose Car model has referenceMany relation with Wheel model.

      /** @ReferenceMany(targetDocument="Wheel", inversedBy="car", simple=true) */
      protected $wheels

      note the simple=true param. If this param is specified then includesReferenceTo queries fail for Car model.

      For example, following query fails:

      $cars = $dm->createQueryBuilder('Car')
                  ->field('wheels')
                  ->includesReferenceTo($wheel)
                  ->getQuery()
                  ->execute();
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Hussain Nazan Naeem
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: