Doctrine 1
  1. Doctrine 1
  2. DC-923

Documentation 1.2 #working-with-models error

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Ubuntu 10.4, LAMP

      Description

      In documentation

      http://www.doctrine-project.org/projects/orm/1.2/docs/manual/working-with-models/en#many-to-many-relations:creating-a-new-link

      There's an error in example code:

      // test.php
      
      // ...
      $user = new User();
      $user->username = 'Some User';
      $user->Groups[0]->username = 'Some Group';
      $user->Groups[1]->username = 'Some Other Group';
      $user->save();
      

      The error is on lines:

      $user->Groups[0]->username = 
      $user->Groups[1]->username = 
      

      they shoud be:

      $user->Groups[0]->name = 
      $user->Groups[1]->name = 
      

      as there's no username column in schema.yml definition of Group object.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Martin Babic
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: