/** * Declares an association between this object and a UserType object. * * @param UserType $v * @return sfGuardUserProfile The current object (for fluent API support) * @throws PropelException */ public function setUserType(UserType $v = null) { if ($v === null) { $this->setUserTypeId(NULL); } else { $this->setUserTypeId($v->getId()); } $this->aUserType = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the UserType object, it will not be re-added. if ($v !== null) { $v->addsfGuardUserProfile($this); } return $this; }