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

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

The default implementation will first clean up the table by calling ActiveFixture::resetIndex. It will then populate the index with the data returned by ActiveFixture::getData. If you override this method, you should consider calling the parent implementation so that the data returned by ActiveFixture::getData can be populated into the index.
public load ( )
    public function load()
    {
        $this->resetIndex();
        $this->data = [];
        $index = $this->getIndexSchema();
        foreach ($this->getData() as $alias => $row) {
            $this->db->createCommand()->insert($index->name, $row)->execute();
            $this->data[$alias] = $row;
        }
    }