Skip to content

Commit

Permalink
added setCommandCache to Query.php
Browse files Browse the repository at this point in the history
issue #55
  • Loading branch information
sanchezzzhak authored Aug 22, 2021
1 parent 6646827 commit fb5d650
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -260,4 +261,4 @@ public function each($batchSize = 100, $db = null)
}


}
}

0 comments on commit fb5d650

Please sign in to comment.