Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-51

Notice: Undefined index: [columnName] in/Doctrine/ORM/Mapping/OneToManyMapping.php on line 129

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-ALPHA3
    • Fix Version/s: 2.0-ALPHA3
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:

      Description

      With the same example as DDC-50

      i now can not get the ManyToOne association (definitions, proverbs and relations);

      i got php notice
      Notice: Undefined index: phrase_id in /usr/local/zend/apache2/htdocs/doctrine/lib/Doctrine/ORM/Mapping/OneToManyMapping.php on line 129

      if i check the line the variable $joinColumnValues is an empty array, because the PersistentCollection.php at line 233 did not send any joincolumnvalues to the load method. i dont know if this the cause.

      i have try to set $entityManager->getConfiguration()->setAllowPartialObjects() to TRUE and make an dql like this
      "SELECT p, d FROM ".models\Phrase::CLASS_NAME." p join p.definitions d WHERE p.phrase = '$phrase'"

      but the result is still the same

        Activity

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Arthur Purnama
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: