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

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

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