예제 #1
0
 /**
  * Sets a single UserProfile object as related to this object by a one-to-one relationship.
  *
  * @param      UserProfile $l UserProfile
  * @return     Users The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setUserProfile(UserProfile $v)
 {
     $this->singleUserProfile = $v;
     // Make sure that that the passed-in UserProfile isn't already associated with this object
     if ($v->getUsers() === null) {
         $v->setUsers($this);
     }
     return $this;
 }