propel/generated-classes/Base/User.php
/**
     * @param  Profile $profile The profile object to remove.
     * @return ChildUser The current object (for fluent API support)
     */
@param  Profile $profile The profile object to remove.
@return ChildUser The current object (for fluent API support)
@param Profile $profile The profile object to remove . @return ChildUser The current object ( for fluent API support )
public function removeProfile($profile)
    {
        if ($this->getProfiles()->contains($profile)) {
            $this->collProfiles->remove($this->collProfiles->search($profile));
            if (null === $this->profilesScheduledForDeletion) {
                $this->profilesScheduledForDeletion = clone $this->collProfiles;
                $this->profilesScheduledForDeletion->clear();
            }
            $this->profilesScheduledForDeletion[]= clone $profile;
            $profile->setUser(null);
        }
        return $this;
    }
public function removeProfile ( $ profile ) { if ( $ this -> getProfiles ( ) -> contains ( $ profile ) ) { $ this -> collProfiles -> remove ( $ this -> collProfiles -> search ( $ profile ) ) ; if ( null === $ this -> profilesScheduledForDeletion ) { $ this -> profilesScheduledForDeletion = clone $ this -> collProfiles ; $ this -> profilesScheduledForDeletion -> clear ( ) ; } $ this -> profilesScheduledForDeletion [ ] = clone $ profile ; $ profile -> setUser ( null ) ; } return $ this ; }
@param  Profile $profile The profile object to remove.
@param Profile $profile The profile object to remove .