From c51e898fb783d5cde1c00b739d38dafe4b976d46 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Thu, 4 Jul 2013 21:03:04 +0300 Subject: [PATCH] fix multikey fixtures --- ipf/command/fixtures.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipf/command/fixtures.php b/ipf/command/fixtures.php index edcf8c4..7bb6154 100644 --- a/ipf/command/fixtures.php +++ b/ipf/command/fixtures.php @@ -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) -- 2.49.0