diff --git a/src/Psecio/Gatekeeper/DataSource/Mysql.php b/src/Psecio/Gatekeeper/DataSource/Mysql.php index 07ec6d8..77b0c32 100644 --- a/src/Psecio/Gatekeeper/DataSource/Mysql.php +++ b/src/Psecio/Gatekeeper/DataSource/Mysql.php @@ -145,6 +145,9 @@ public function update(\Modler\Model $model) $properties = $model->getProperties(); foreach ($bind as $column => $name) { + if (!isset($properties[$column]['column'])) { + throw new \InvalidArgumentException('Column "'.$column. '" is not defined!'); + } $colName = $properties[$column]['column']; $update[] = $colName.' = '.$name; }