src/Alchemy/Component/Cerberus/Model/Base/RolePermissionQuery.php
public function filterByRole($role, $comparison = null)
    {
        if ($role instanceof \Alchemy\Component\Cerberus\Model\Role) {
            return $this
                ->addUsingAlias(RolePermissionTableMap::COL_ROLE_ID, $role->getId(), $comparison);
        } elseif ($role instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(RolePermissionTableMap::COL_ROLE_ID, $role->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterByRole() only accepts arguments of type \Alchemy\Component\Cerberus\Model\Role or Collection');
        }
    }
public function filterByRole($role, $comparison = null)
    {
        if ($role instanceof \Alchemy\Component\Cerberus\Model\Role) {
            return $this
                ->addUsingAlias(RolePermissionTableMap::COL_ROLE_ID, $role->getId(), $comparison);
        } elseif ($role instanceof ObjectCollection) {
            if (null === $comparison) {
                $comparison = Criteria::IN;
            }

            return $this
                ->addUsingAlias(RolePermissionTableMap::COL_ROLE_ID, $role->toKeyValue('PrimaryKey', 'Id'), $comparison);
        } else {
            throw new PropelException('filterByRole() only accepts arguments of type \Alchemy\Component\Cerberus\Model\Role or Collection');
        }
    }
public function filterByRole ( $ role , $ comparison = null ) { if ( $ role instanceof \ Alchemy \ Component \ Cerberus \ Model \ Role ) { return $ this -> addUsingAlias ( RolePermissionTableMap :: COL_ROLE_ID , $ role -> getId ( ) , $ comparison ) ; } elseif ( $ role instanceof ObjectCollection ) { if ( null === $ comparison ) { $ comparison = Criteria :: IN ; } return $ this -> addUsingAlias ( RolePermissionTableMap :: COL_ROLE_ID , $ role -> toKeyValue ( 'PrimaryKey' , 'Id' ) , $ comparison ) ; } else { throw new PropelException ( 'filterByRole() only accepts arguments of type \Alchemy\Component\Cerberus\Model\Role or Collection' ) ; } }
Filter the query by a related \Alchemy\Component\Cerberus\Model\Role object

@param \Alchemy\Component\Cerberus\Model\Role|ObjectCollection $role The related object(s) to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildRolePermissionQuery The current query, for fluid interface
Filter the query by a related \ Alchemy \ Component \ Cerberus \ Model \ Role object