From a1b1d6dd760f0b55fc2e3205fbb364b0f5d5ec6c Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Mon, 29 Jul 2013 23:06:07 +0300 Subject: [PATCH] minor fixtures optimization --- ipf/command/fixtures.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ipf/command/fixtures.php b/ipf/command/fixtures.php index 0ed9fff..46f169a 100644 --- a/ipf/command/fixtures.php +++ b/ipf/command/fixtures.php @@ -34,8 +34,9 @@ class IPF_Command_Fixtures $key = array($key); $records = $fixture['records']; echo "Loading $modelClass "; + $table = IPF_ORM::getTable($modelClass); foreach ($records as $record) { - $query = IPF_ORM::getTable($modelClass) + $query = $table ->createQuery() ->limit(1); foreach ($key as $k) -- 2.49.0