lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php 1 location
|
@@ 213-215 (lines=3) @@
|
| 210 |
|
$class->mapField($mapping); |
| 211 |
|
|
| 212 |
|
// Index this field if either "index", "unique", or "sparse" are set |
| 213 |
|
if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) { |
| 214 |
|
return; |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
$keys = array($name => isset($mapping['order']) ? $mapping['order'] : 'asc'); |
| 218 |
|
$options = array(); |
lib/Doctrine/ODM/MongoDB/Mapping/Driver/YamlDriver.php 1 location
|
@@ 174-176 (lines=3) @@
|
| 171 |
|
|
| 172 |
|
$class->mapField($mapping); |
| 173 |
|
|
| 174 |
|
if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) { |
| 175 |
|
return; |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
// Multiple index specifications in one field mapping is ambiguous |
| 179 |
|
if ((isset($mapping['index']) && is_array($mapping['index'])) + |