src/Titon/Db/Query/Join.php
public function on($foreignKey, $key = null) {
        if (is_array($foreignKey)) {
            $this->_conditions = array_replace($this->_conditions, $foreignKey);
        } else {
            $this->_conditions[$foreignKey] = $key;
        }

        return $this;
    }
public function on($foreignKey, $key = null) {
        if (is_array($foreignKey)) {
            $this->_conditions = array_replace($this->_conditions, $foreignKey);
        } else {
            $this->_conditions[$foreignKey] = $key;
        }

        return $this;
    }
public function on ( $ foreignKey , $ key = null ) { if ( is_array ( $ foreignKey ) ) { $ this -> _conditions = array_replace ( $ this -> _conditions , $ foreignKey ) ; } else { $ this -> _conditions [ $ foreignKey ] = $ key ; } return $ this ; }
Set the conditions to join on.

@param string $foreignKey
@param string $key
@return $this
Set the conditions to join on .