Exemplo n.º 1
0
 /**
  * Sets a single ChildUserDetail object as related to this object by a one-to-one relationship.
  *
  * @param  ChildUserDetail $v ChildUserDetail
  * @return $this|\ORM\User The current object (for fluent API support)
  * @throws PropelException
  */
 public function setDetail(ChildUserDetail $v = null)
 {
     $this->singleDetail = $v;
     // Make sure that that the passed-in ChildUserDetail isn't already associated with this object
     if ($v !== null && $v->getUser(null, false) === null) {
         $v->setUser($this);
     }
     return $this;
 }