function setTutorStatusEnabled() { $userTutor = $this->getUserTutor(); if (!$userTutor) { $userTutor = new UserTutor(); $userTutor->setUser($this); $userTutor->save(); } }
/** * Sets a single UserTutor object as related to this object by a one-to-one relationship. * * @param UserTutor $l UserTutor * @return User The current object (for fluent API support) * @throws PropelException */ public function setUserTutor(UserTutor $v) { $this->singleUserTutor = $v; // Make sure that that the passed-in UserTutor isn't already associated with this object if ($v->getUser() === null) { $v->setUser($this); } return $this; }