propel/generated-classes/Base/User.php
/**
     * Method called to associate a ChildProfile object to this object
     * through the ChildProfile foreign key attribute.
     *
     * @param    ChildProfile $l ChildProfile
     * @return   \User The current object (for fluent API support)
     */
Method called to associate a ChildProfile object to this object
through the ChildProfile foreign key attribute.

@param    ChildProfile $l ChildProfile
@return   \User The current object (for fluent API support)
Method called to associate a ChildProfile object to this object through the ChildProfile foreign key attribute . @param ChildProfile $l ChildProfile @return \ User The current object ( for fluent API support )
public function addProfile(ChildProfile $l)
    {
        if ($this->collProfiles === null) {
            $this->initProfiles();
            $this->collProfilesPartial = true;
        }
        if (!in_array($l, $this->collProfiles->getArrayCopy(), true)) { 
            $this->doAddProfile($l);
        }
        return $this;
    }
public function addProfile ( ChildProfile $ l ) { if ( $ this -> collProfiles === null ) { $ this -> initProfiles ( ) ; $ this -> collProfilesPartial = true ; } if ( ! in_array ( $ l , $ this -> collProfiles -> getArrayCopy ( ) , true ) ) { $ this -> doAddProfile ( $ l ) ; } return $ this ; }
Method called to associate a ChildProfile object to this object
 through the ChildProfile foreign key attribute.
Method called to associate a ChildProfile object to this object through the ChildProfile foreign key attribute .
// only add it if the **same** object is not already associated