lib/Sirel/SelectManager.php
function on($expr)
    {
        $lastJoin = $this->getLastJoinSource();

        // Join all given expressions with AND
        if ($lastJoin->right instanceof On) {
            // Merge the new ON Expressions with the 
            // old if there exists an ON Expression
            $lastJoin->right->expression = $expr;
        } else {
            // Otherwise create a new ON Expression
            $lastJoin->right = new On($expr);
        }
        return $this;
    }
function on($expr)
    {
        $lastJoin = $this->getLastJoinSource();

        // Join all given expressions with AND
        if ($lastJoin->right instanceof On) {
            // Merge the new ON Expressions with the 
            // old if there exists an ON Expression
            $lastJoin->right->expression = $expr;
        } else {
            // Otherwise create a new ON Expression
            $lastJoin->right = new On($expr);
        }
        return $this;
    }
function on ( $ expr ) { $ lastJoin = $ this -> getLastJoinSource ( ) ; // Join all given expressions with AND if ( $ lastJoin -> right instanceof On ) { // Merge the new ON Expressions with the  // old if there exists an ON Expression $ lastJoin -> right -> expression = $ expr ; } else { // Otherwise create a new ON Expression $ lastJoin -> right = new On ( $ expr ) ; } return $ this ; }
Adds Join Constraints to the last added Join Source

@param  Node $expr,...
@return SelectManager
Adds Join Constraints to the last added Join Source