summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/idiorm.php b/idiorm.php
index 58a67ae..0402652 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -306,6 +306,7 @@
if(!is_null($id)) {
$this->where($this->_get_id_column_name(), $id);
}
+ $this->limit(1);
$this->_find_type = self::FIND_ONE;
$statement = $this->_run();
$result = $statement->fetch(PDO::FETCH_ASSOC);