propel/generated-classes/Base/UserQuery.php
/**
     * Adds a JOIN clause to the query using the Profile relation
     *
     * @param     string $relationAlias optional alias for the relation
     * @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
     *
     * @return ChildUserQuery The current query, for fluid interface
     */


@return ChildUserQuery The current query, for fluid interface
@return ChildUserQuery The current query for fluid interface
public function joinProfile($relationAlias = null, $joinType = Criteria::INNER_JOIN)
    {
        $tableMap = $this->getTableMap();
        $relationMap = $tableMap->getRelation('Profile');
        $join = new ModelJoin();
        $join->setJoinType($joinType);
        $join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
        if ($previousJoin = $this->getPreviousJoin()) {
            $join->setPreviousJoin($previousJoin);
        }
        if ($relationAlias) {
            $this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
            $this->addJoinObject($join, $relationAlias);
        } else {
            $this->addJoinObject($join, 'Profile');
        }
        return $this;
    }
public function joinProfile ( $ relationAlias = null , $ joinType = Criteria :: INNER_JOIN ) { $ tableMap = $ this -> getTableMap ( ) ; $ relationMap = $ tableMap -> getRelation ( 'Profile' ) ; $ join = new ModelJoin ( ) ; $ join -> setJoinType ( $ joinType ) ; $ join -> setRelationMap ( $ relationMap , $ this -> useAliasInSQL ? $ this -> getModelAlias ( ) : null , $ relationAlias ) ; if ( $ previousJoin = $ this -> getPreviousJoin ( ) ) { $ join -> setPreviousJoin ( $ previousJoin ) ; } if ( $ relationAlias ) { $ this -> addAlias ( $ relationAlias , $ relationMap -> getRightTable ( ) -> getName ( ) ) ; $ this -> addJoinObject ( $ join , $ relationAlias ) ; } else { $ this -> addJoinObject ( $ join , 'Profile' ) ; } return $ this ; }
Adds a JOIN clause to the query using the Profile relation
 @param     string $relationAlias optional alias for the relation
 @param     string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
Adds a JOIN clause to the query using the Profile relation @param string $relationAlias optional alias for the relation @param string $joinType Accepted values are null ' left join ' ' right join ' ' inner join '
// create a ModelJoin object for this join // add the ModelJoin to the current object