/** * @inheritdoc */ public function insertDocument(Document $document, array $options = []) { $response = static::getDb()->createCommand()->insert($document->getIndex(), $document->getType(), $document->getData(), $document->getId(), $options); return new Response('index', $response); }