/** * Join the expected table with a left join. * In the second argument can pass optional tables for the join operation. * * @param string $table Name of the table for the join. * @param array $optionalTables (Optional) Array with table names as elements * * @return $this The same instance to concatenate methods. */ public function left($table, array $optionalTables = array()) { $preparedTablesArray = $this->_getPreparedTableObjects($table, $optionalTables); $this->join->left($preparedTablesArray['table'], $preparedTablesArray['optionalTables']); return $this; }