summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2014-06-27 13:45:39 +0100
committerSimon Holywell <[email protected]>2014-06-27 13:45:39 +0100
commita7f20ee1b89123b68d47e9d17e9964c495c183d2 (patch)
treed100cd18653a274449bfc47879a5ce8bd6c83d39
parentb0922d8719a94e3a0e0e4a0ca3876f4f91475dcf (diff)
Issue #224 having_id_is undefined variable $value
-rw-r--r--idiorm.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/idiorm.php b/idiorm.php
index 80e9a4d..b3f3fb7 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -1469,8 +1469,8 @@
*/
public function having_id_is($id) {
return (is_array($this->_get_id_column_name())) ?
- $this->having($this->_get_compound_id_column_values($value)) :
- $this->having($this->_get_id_column_name(), $id);
+ $this->where($this->_get_compound_id_column_values($id), null) :
+ $this->where($this->_get_id_column_name(), $id);
}
/**