yii\mongodb\ActiveFixture::load PHP Метод

load() публичный Метод

The default implementation will first reset the MongoDB collection and then populate it with the data returned by ActiveFixture::getData.
public load ( )
    public function load()
    {
        $this->resetCollection();
        $this->data = [];
        $data = $this->getData();
        if (empty($data)) {
            return;
        }
        $this->getCollection()->batchInsert($data);
        foreach ($data as $alias => $row) {
            $this->data[$alias] = $row;
        }
    }