Commit 0d35c269 by kate-kate

using batchInsert

parent a4b6eeca
...@@ -44,9 +44,8 @@ class ActiveFixture extends \yii\test\BaseActiveFixture ...@@ -44,9 +44,8 @@ class ActiveFixture extends \yii\test\BaseActiveFixture
public function load() public function load()
{ {
$this->resetCollection(); $this->resetCollection();
$this->getCollection()->batchInsert($this->getData());
foreach ($this->getData() as $alias => $row) { foreach ($this->getData() as $alias => $row) {
$this->getCollection()->insert($row);
$this->data[$alias] = $row; $this->data[$alias] = $row;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment