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