From b2420cb14ab709b6fd2cc4387a0f9fc1a4a5f243 Mon Sep 17 00:00:00 2001 From: Igor Moiseev Date: Sun, 1 Dec 2013 22:19:43 +0100 Subject: Implemetation of raw_join --- idiorm.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'idiorm.php') diff --git a/idiorm.php b/idiorm.php index 4ab91bc..dee8f8b 100644 --- a/idiorm.php +++ b/idiorm.php @@ -949,13 +949,15 @@ /** * Add a RAW JOIN source to the query */ - public function raw_join($table, $constraint, $table_alias=null) { + public function raw_join($table, $constraint, $table_alias, $parameters = array()) { // Add table alias if present if (!is_null($table_alias)) { $table_alias = $this->_quote_identifier($table_alias); $table .= " {$table_alias}"; } + $this->_values = $parameters; + // Build the constraint if (is_array($constraint)) { list($first_column, $operator, $second_column) = $constraint; -- cgit v1.2.3