src/Alchemy/Component/Cerberus/Model/Base/PermissionQuery.php
public function filterByRolePermission($rolePermission, $comparison = null)
    {
        if ($rolePermission instanceof \Alchemy\Component\Cerberus\Model\RolePermission) {
            return $this
                ->addUsingAlias(PermissionTableMap::COL_ID, $rolePermission->getPermissionId(), $comparison);
        } elseif ($rolePermission instanceof ObjectCollection) {
            return $this
                ->useRolePermissionQuery()
                ->filterByPrimaryKeys($rolePermission->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByRolePermission() only accepts arguments of type \Alchemy\Component\Cerberus\Model\RolePermission or Collection');
        }
    }
public function filterByRolePermission($rolePermission, $comparison = null)
    {
        if ($rolePermission instanceof \Alchemy\Component\Cerberus\Model\RolePermission) {
            return $this
                ->addUsingAlias(PermissionTableMap::COL_ID, $rolePermission->getPermissionId(), $comparison);
        } elseif ($rolePermission instanceof ObjectCollection) {
            return $this
                ->useRolePermissionQuery()
                ->filterByPrimaryKeys($rolePermission->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByRolePermission() only accepts arguments of type \Alchemy\Component\Cerberus\Model\RolePermission or Collection');
        }
    }
public function filterByRolePermission ( $ rolePermission , $ comparison = null ) { if ( $ rolePermission instanceof \ Alchemy \ Component \ Cerberus \ Model \ RolePermission ) { return $ this -> addUsingAlias ( PermissionTableMap :: COL_ID , $ rolePermission -> getPermissionId ( ) , $ comparison ) ; } elseif ( $ rolePermission instanceof ObjectCollection ) { return $ this -> useRolePermissionQuery ( ) -> filterByPrimaryKeys ( $ rolePermission -> getPrimaryKeys ( ) ) -> endUse ( ) ; } else { throw new PropelException ( 'filterByRolePermission() only accepts arguments of type \Alchemy\Component\Cerberus\Model\RolePermission or Collection' ) ; } }
Filter the query by a related \Alchemy\Component\Cerberus\Model\RolePermission object

@param \Alchemy\Component\Cerberus\Model\RolePermission|ObjectCollection $rolePermission  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 \ Alchemy \ Component \ Cerberus \ Model \ RolePermission object