src/Alchemy/Component/Cerberus/Model/Base/User.php
public function addUserRole(ChildUserRole $l)
    {
        if ($this->collUserRoles === null) {
            $this->initUserRoles();
            $this->collUserRolesPartial = true;
        }

        if (!$this->collUserRoles->contains($l)) {
            $this->doAddUserRole($l);
        }

        return $this;
    }
public function addUserRole(ChildUserRole $l)
    {
        if ($this->collUserRoles === null) {
            $this->initUserRoles();
            $this->collUserRolesPartial = true;
        }

        if (!$this->collUserRoles->contains($l)) {
            $this->doAddUserRole($l);
        }

        return $this;
    }
public function addUserRole ( ChildUserRole $ l ) { if ( $ this -> collUserRoles === null ) { $ this -> initUserRoles ( ) ; $ this -> collUserRolesPartial = true ; } if ( ! $ this -> collUserRoles -> contains ( $ l ) ) { $ this -> doAddUserRole ( $ l ) ; } return $ this ; }
Method called to associate a ChildUserRole object to this object
through the ChildUserRole foreign key attribute.

@param  ChildUserRole $l ChildUserRole
@return $this|\Alchemy\Component\Cerberus\Model\User The current object (for fluent API support)
Method called to associate a ChildUserRole object to this object through the ChildUserRole foreign key attribute .