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