diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Psecio/Gatekeeper/Model/Mysql.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Psecio/Gatekeeper/Model/Mysql.php b/src/Psecio/Gatekeeper/Model/Mysql.php index 7e814bf..8adba4e 100644 --- a/src/Psecio/Gatekeeper/Model/Mysql.php +++ b/src/Psecio/Gatekeeper/Model/Mysql.php @@ -225,9 +225,14 @@ class Mysql extends \Modler\Model */ public function find(array $where = array()) { + $properties = $this->getProperties(); list($columns, $bind) = $this->setup($where); $update = array(); foreach ($bind as $column => $name) { + // See if we keep to transfer it over to a column name + if (array_key_exists($column, $properties)) { + $column = $properties[$column]['column']; + } $update[] = $column.' = '.$name; } |