lib/Face/Sql/Query/SelectBuilder.php
public function join($path, $select = null)
    {

        $path = $this->getNameInContext($path);

        $face = $this->getBaseFace()
            ->getElement($path)
            ->getFace();

        $sqlPath = $this->_doFQLTableName($path, ".");

        $qJoin = new JoinQueryFace($sqlPath, $face);

        if(null !== $select){
            $qJoin->setColumns($select);
        }

        $this->addJoin($qJoin);
        return $this;
    }
public function join($path, $select = null)
    {

        $path = $this->getNameInContext($path);

        $face = $this->getBaseFace()
            ->getElement($path)
            ->getFace();

        $sqlPath = $this->_doFQLTableName($path, ".");

        $qJoin = new JoinQueryFace($sqlPath, $face);

        if(null !== $select){
            $qJoin->setColumns($select);
        }

        $this->addJoin($qJoin);
        return $this;
    }
public function join ( $ path , $ select = null ) { $ path = $ this -> getNameInContext ( $ path ) ; $ face = $ this -> getBaseFace ( ) -> getElement ( $ path ) -> getFace ( ) ; $ sqlPath = $ this -> _doFQLTableName ( $ path , "." ) ; $ qJoin = new JoinQueryFace ( $ sqlPath , $ face ) ; if ( null !== $ select ) { $ qJoin -> setColumns ( $ select ) ; } $ this -> addJoin ( $ qJoin ) ; return $ this ; }
add a join clause to the query
@param string $path the face path to the join
@return SelectBuilder
add a join clause to the query