Пример #1
0
 /**
  * Sets a single ChildRolePermission object as related to this object by a one-to-one relationship.
  *
  * @param  ChildRolePermission $v ChildRolePermission
  * @return $this|\ORM\Role The current object (for fluent API support)
  * @throws PropelException
  */
 public function setPermission(ChildRolePermission $v = null)
 {
     $this->singlePermission = $v;
     // Make sure that that the passed-in ChildRolePermission isn't already associated with this object
     if ($v !== null && $v->getRole(null, false) === null) {
         $v->setRole($this);
     }
     return $this;
 }