src/ORM/Queries/SQLConditionalExpression.php
public function addInnerJoin($table, $onPredicate, $tableAlias = null, $order = 20, $parameters = array())
    {
        if (!$tableAlias) {
            $tableAlias = $table;
        }
        $this->from[$tableAlias] = array(
            'type' => 'INNER',
            'table' => $table,
            'filter' => array($onPredicate),
            'order' => $order,
            'parameters' => $parameters
        );
        return $this;
    }
public function addInnerJoin($table, $onPredicate, $tableAlias = null, $order = 20, $parameters = array())
    {
        if (!$tableAlias) {
            $tableAlias = $table;
        }
        $this->from[$tableAlias] = array(
            'type' => 'INNER',
            'table' => $table,
            'filter' => array($onPredicate),
            'order' => $order,
            'parameters' => $parameters
        );
        return $this;
    }
public function addInnerJoin ( $ table , $ onPredicate , $ tableAlias = null , $ order = 20 , $ parameters = array ( ) ) { if ( ! $ tableAlias ) { $ tableAlias = $ table ; } $ this -> from [ $ tableAlias ] = array ( 'type' => 'INNER' , 'table' => $ table , 'filter' => array ( $ onPredicate ) , 'order' => $ order , 'parameters' => $ parameters ) ; return $ this ; }
Add an INNER JOIN criteria

@param string $table Unquoted table name
@param string $onPredicate The "ON" SQL fragment in an "INNER JOIN ... AS ... ON ..." statement. Needs to be
valid (quoted) SQL.
@param string $tableAlias Optional alias which makes it easier to identify and replace joins later on
@param int $order A numerical index to control the order that joins are added to the query; lower order
values will cause the query to appear first. The default is 20, and joins created automatically by the
ORM have a value of 10.
@param array $parameters Any additional parameters if the join is a parameterised subquery
@return $this Self reference
Add an INNER JOIN criteria