Пример #1
0
 /**
  * Declares an association between this object and a Group object.
  *
  * @param                  Group $v
  * @return UserGroup The current object (for fluent API support)
  * @throws PropelException
  */
 public function setGroup(Group $v = null)
 {
     if ($v === null) {
         $this->setFosGroupId(NULL);
     } else {
         $this->setFosGroupId($v->getId());
     }
     $this->aGroup = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Group object, it will not be re-added.
     if ($v !== null) {
         $v->addUserGroup($this);
     }
     return $this;
 }