lib/Sirel/SelectManager.php
function join($relation, $expr = null, $mode = Join::INNER)
    {
        if (null !== $expr) {
            $expr = new On(new AndX(array($expr)));
        }

        $join = new Join($relation, $expr);
        $join->mode = $mode;

        $this->nodes->source->right[] = $join;
        return $this;
    }
function join($relation, $expr = null, $mode = Join::INNER)
    {
        if (null !== $expr) {
            $expr = new On(new AndX(array($expr)));
        }

        $join = new Join($relation, $expr);
        $join->mode = $mode;

        $this->nodes->source->right[] = $join;
        return $this;
    }
function join ( $ relation , $ expr = null , $ mode = Join :: INNER ) { if ( null !== $ expr ) { $ expr = new On ( new AndX ( array ( $ expr ) ) ) ; } $ join = new Join ( $ relation , $ expr ) ; $ join -> mode = $ mode ; $ this -> nodes -> source -> right [ ] = $ join ; return $ this ; }
Joins the selected relation with another relation, in the
given mode

@param  mixed $relation
@param  mixed $expr     ON Expression
@param  int   $mode     Join Mode (INNER, OUTER, LEFT)
@return SelectManager
Joins the selected relation with another relation in the given mode