summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Psecio/Gatekeeper/Model/Mysql.php5
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;
}