From cb8cf5b6304f5dcb7a1d6c9d4b27f9b99887eb05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20G=2E=20J=C3=B8rgensen?= Date: Sat, 7 Jan 2017 01:47:21 +0100 Subject: [PATCH] Don't check for empty dbFields on update This makes save() work without having to define $dbFields in the model. --- dbObject.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/dbObject.php b/dbObject.php index 229dd043..94c9601c 100644 --- a/dbObject.php +++ b/dbObject.php @@ -244,9 +244,6 @@ public function insert () { * @param array $data Optional update data to apply to the object */ public function update ($data = null) { - if (empty ($this->dbFields)) - return false; - if (empty ($this->data[$this->primaryKey])) return false;