Service/IndexService.php 1 location
|
@@ 389-395 (lines=7) @@
|
| 386 |
|
* |
| 387 |
|
* @param object $document |
| 388 |
|
*/ |
| 389 |
|
public function persist($document) |
| 390 |
|
{ |
| 391 |
|
$documentArray = $this->converter->convertToArray($document); |
| 392 |
|
$type = $this->getMetadataCollector()->getDocumentType(get_class($document)); |
| 393 |
|
|
| 394 |
|
$this->bulk('index', $type, $documentArray); |
| 395 |
|
} |
| 396 |
|
|
| 397 |
|
public function commit(array $params = []): array |
| 398 |
|
{ |
Service/Manager.php 1 location
|
@@ 333-339 (lines=7) @@
|
| 330 |
|
* |
| 331 |
|
* @param object $document |
| 332 |
|
*/ |
| 333 |
|
public function persist($document) |
| 334 |
|
{ |
| 335 |
|
$documentArray = $this->converter->convertToArray($document); |
| 336 |
|
$type = $this->getMetadataCollector()->getDocumentType(get_class($document)); |
| 337 |
|
|
| 338 |
|
$this->bulk('index', $type, $documentArray); |
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
/** |
| 342 |
|
* Adds document for removal. |