propel/generated-classes/Base/UserQuery.php
/**
     * Filter the query by a related \Profile object
     *
     * @param \Profile|ObjectCollection $profile  the related object to use as filter
     * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
     *
     * @return ChildUserQuery The current query, for fluid interface
     */
Filter the query by a related \Profile object
@param \Profile|ObjectCollection $profile  the related object to use as filter
@param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return ChildUserQuery The current query, for fluid interface
Filter the query by a related \ Profile object @param \ Profile|ObjectCollection $profile the related object to use as filter @param string $comparison Operator to use for the column comparison defaults to Criteria :: EQUAL @return ChildUserQuery The current query for fluid interface
public function filterByProfile($profile, $comparison = null)
    {
        if ($profile instanceof \Profile) {
            return $this
                ->addUsingAlias(UserTableMap::ID, $profile->getUserID(), $comparison);
        } elseif ($profile instanceof ObjectCollection) {
            return $this
                ->useProfileQuery()
                ->filterByPrimaryKeys($profile->getPrimaryKeys())
                ->endUse();
        } else {
            throw new PropelException('filterByProfile() only accepts arguments of type \Profile or Collection');
        }
    }
public function filterByProfile ( $ profile , $ comparison = null ) { if ( $ profile instanceof \ Profile ) { return $ this -> addUsingAlias ( UserTableMap :: ID , $ profile -> getUserID ( ) , $ comparison ) ; } elseif ( $ profile instanceof ObjectCollection ) { return $ this -> useProfileQuery ( ) -> filterByPrimaryKeys ( $ profile -> getPrimaryKeys ( ) ) -> endUse ( ) ; } else { throw new PropelException ( 'filterByProfile() only accepts arguments of type \Profile or Collection' ) ; } }
Filter the query by a related \Profile object
 @param \Profile|ObjectCollection $profile  the related object to use as filter
 @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
Filter the query by a related \ Profile object @param \ Profile|ObjectCollection $profile the related object to use as filter @param string $comparison Operator to use for the column comparison defaults to Criteria :: EQUAL