diff options
author | Jamie Matthews <[email protected]> | 2010-10-22 01:49:32 +0100 |
---|---|---|
committer | Jamie Matthews <[email protected]> | 2010-10-22 01:49:32 +0100 |
commit | 37cb37a1c310a60dc8ba4329e03d6ae7d8bf6fb0 (patch) | |
tree | fb8051ac5240f4aea3b7d5653e004a1a0cf8f836 | |
parent | 6b7fdc6e0d4516c81b2506a1b16a78a1e31ede3c (diff) |
Ensure delete method calls _log_query correctly
-rw-r--r-- | idiorm.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -777,10 +777,11 @@ $this->_quote_identifier($this->_get_id_column_name()), "= ?", )); + $params = array($this->id()); self::_setup_db(); - self::_log_query(); + self::_log_query($query, $params); $statement = self::$_db->prepare($query); - return $statement->execute(array($this->id())); + return $statement->execute($params); } // --------------------- // |