Example #1
0
 /**
  * Method called to associate a ChildUser object to this object
  * through the ChildUser foreign key attribute.
  *
  * @param  ChildUser $l ChildUser
  * @return $this|\App\Propel\File The current object (for fluent API support)
  */
 public function addUser(ChildUser $l)
 {
     if ($this->collUsers === null) {
         $this->initUsers();
         $this->collUsersPartial = true;
     }
     if (!$this->collUsers->contains($l)) {
         $this->doAddUser($l);
         if ($this->usersScheduledForDeletion and $this->usersScheduledForDeletion->contains($l)) {
             $this->usersScheduledForDeletion->remove($this->usersScheduledForDeletion->search($l));
         }
     }
     return $this;
 }