lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php 1 location
|
@@ 201-203 (lines=3) @@
|
198 |
|
$class->mapField($mapping); |
199 |
|
|
200 |
|
// Index this field if either "index", "unique", or "sparse" are set |
201 |
|
if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) { |
202 |
|
return; |
203 |
|
} |
204 |
|
|
205 |
|
$keys = array($name => $mapping['order'] ?? 'asc'); |
206 |
|
$options = array(); |
lib/Doctrine/ODM/MongoDB/Mapping/Driver/YamlDriver.php 1 location
|
@@ 168-170 (lines=3) @@
|
165 |
|
|
166 |
|
$class->mapField($mapping); |
167 |
|
|
168 |
|
if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) { |
169 |
|
return; |
170 |
|
} |
171 |
|
|
172 |
|
// Multiple index specifications in one field mapping is ambiguous |
173 |
|
if ((isset($mapping['index']) && is_array($mapping['index'])) + |