]> git.andy128k.dev Git - ipf.git/commitdiff
fix multikey fixtures
authorAndrey Kutejko <andy128k@gmail.com>
Thu, 4 Jul 2013 18:03:04 +0000 (21:03 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Thu, 4 Jul 2013 18:03:04 +0000 (21:03 +0300)
ipf/command/fixtures.php

index edcf8c4c0117e881fbd579ad1b1b34fc001d30fe..7bb6154d782b317e9f6317b37f655b9b2639f9cf 100644 (file)
@@ -41,7 +41,7 @@ class IPF_Command_Fixtures
                     ->createQuery()
                     ->limit(1);
                 foreach ($key as $k)
-                    $query->where($k . ' = ?', array($record[$k]));
+                    $query->addWhere($k . ' = ?', array($record[$k]));
 
                 $model = $query->execute();
                 if ($model)