diff options
author | Igor Moiseev <[email protected]> | 2013-12-01 22:19:43 +0100 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2014-04-26 13:45:46 +0100 |
commit | b2420cb14ab709b6fd2cc4387a0f9fc1a4a5f243 (patch) | |
tree | ec2e859689d01ca5df85223ce65ce04cd4d2b4b5 /idiorm.php | |
parent | de29638b4891c47b6293a52b76d146675fbcd012 (diff) |
Implemetation of raw_join
Diffstat (limited to 'idiorm.php')
-rw-r--r-- | idiorm.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |