src/Alchemy/Component/Cerberus/Model/Base/Permission.php
public function addPermissionRelatedById(ChildPermission $l)
    {
        if ($this->collPermissionsRelatedById === null) {
            $this->initPermissionsRelatedById();
            $this->collPermissionsRelatedByIdPartial = true;
        }

        if (!$this->collPermissionsRelatedById->contains($l)) {
            $this->doAddPermissionRelatedById($l);
        }

        return $this;
    }
public function addPermissionRelatedById(ChildPermission $l)
    {
        if ($this->collPermissionsRelatedById === null) {
            $this->initPermissionsRelatedById();
            $this->collPermissionsRelatedByIdPartial = true;
        }

        if (!$this->collPermissionsRelatedById->contains($l)) {
            $this->doAddPermissionRelatedById($l);
        }

        return $this;
    }
public function addPermissionRelatedById ( ChildPermission $ l ) { if ( $ this -> collPermissionsRelatedById === null ) { $ this -> initPermissionsRelatedById ( ) ; $ this -> collPermissionsRelatedByIdPartial = true ; } if ( ! $ this -> collPermissionsRelatedById -> contains ( $ l ) ) { $ this -> doAddPermissionRelatedById ( $ l ) ; } return $ this ; }
Method called to associate a ChildPermission object to this object
through the ChildPermission foreign key attribute.

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