Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
64 | public function createIndex(array $index) |
||
65 | { |
||
66 | $index['options']['background'] = true; |
||
67 | $type = $index['model_type']; |
||
68 | $metadata = $this->store->getMetadataForType($type); |
||
69 | $collection = $this->store->getPersisterFor($type)->getQuery()->getModelCollection($metadata); |
||
70 | return $collection->ensureIndex($index['keys'], $index['options']); |
||
71 | } |
||
72 | } |
||
73 |