src/Alchemy/Component/Cerberus/Model/Base/PermissionQuery.php
public function filterByRole($role, $comparison = Criteria::EQUAL)
    {
        return $this
            ->useRolePermissionQuery()
            ->filterByRole($role, $comparison)
            ->endUse();
    }
public function filterByRole($role, $comparison = Criteria::EQUAL)
    {
        return $this
            ->useRolePermissionQuery()
            ->filterByRole($role, $comparison)
            ->endUse();
    }
public function filterByRole ( $ role , $ comparison = Criteria :: EQUAL ) { return $ this -> useRolePermissionQuery ( ) -> filterByRole ( $ role , $ comparison ) -> endUse ( ) ; }
Filter the query by a related Role object
using the role_permission table as cross reference

@param Role $role the related object to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildPermissionQuery The current query, for fluid interface
Filter the query by a related Role object using the role_permission table as cross reference