From fb5d65078a50084fa3b6cf57d782164cb7af1193 Mon Sep 17 00:00:00 2001 From: Tutik Alexsandr Date: Sun, 22 Aug 2021 10:58:49 +0300 Subject: [PATCH] added setCommandCache to Query.php issue #55 --- Query.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Query.php b/Query.php index d561643..dd95510 100644 --- a/Query.php +++ b/Query.php @@ -49,8 +49,9 @@ public function createCommand($db = null) } list ($sql, $params) = $db->getQueryBuilder()->build($this); - $this->_command = $db->createCommand($sql, $params); + $this->setCommandCache($this->_command); + return $this->_command; } @@ -260,4 +261,4 @@ public function each($batchSize = 100, $db = null) } -} \ No newline at end of file +}