src/Alchemy/Component/Cerberus/Model/Base/Role.php
public function initRolePermissions($overrideExisting = true)
    {
        if (null !== $this->collRolePermissions && !$overrideExisting) {
            return;
        }
        $this->collRolePermissions = new ObjectCollection();
        $this->collRolePermissions->setModel('\Alchemy\Component\Cerberus\Model\RolePermission');
    }
public function initRolePermissions($overrideExisting = true)
    {
        if (null !== $this->collRolePermissions && !$overrideExisting) {
            return;
        }
        $this->collRolePermissions = new ObjectCollection();
        $this->collRolePermissions->setModel('\Alchemy\Component\Cerberus\Model\RolePermission');
    }
public function initRolePermissions ( $ overrideExisting = true ) { if ( null !== $ this -> collRolePermissions && ! $ overrideExisting ) { return ; } $ this -> collRolePermissions = new ObjectCollection ( ) ; $ this -> collRolePermissions -> setModel ( '\Alchemy\Component\Cerberus\Model\RolePermission' ) ; }
Initializes the collRolePermissions collection.

By default this just sets the collRolePermissions collection to an empty array (like clearcollRolePermissions());
however, you may wish to override this method in your stub class to provide setting appropriate
to your application -- for example, setting the initial array to the values stored in database.

@param      boolean $overrideExisting If set to true, the method call initializes
the collection even if it is not empty

@return void
Initializes the collRolePermissions collection .