lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php 1 location
|
@@ 218-220 (lines=3) @@
|
| 215 |
|
$class->mapField($mapping); |
| 216 |
|
|
| 217 |
|
// Index this field if either "index", "unique", or "sparse" are set |
| 218 |
|
if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) { |
| 219 |
|
return; |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
$keys = array($name => isset($mapping['order']) ? $mapping['order'] : 'asc'); |
| 223 |
|
$options = array(); |
lib/Doctrine/ODM/MongoDB/Mapping/Driver/YamlDriver.php 1 location
|
@@ 185-187 (lines=3) @@
|
| 182 |
|
|
| 183 |
|
$class->mapField($mapping); |
| 184 |
|
|
| 185 |
|
if ( ! (isset($mapping['index']) || isset($mapping['unique']) || isset($mapping['sparse']))) { |
| 186 |
|
return; |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
// Multiple index specifications in one field mapping is ambiguous |
| 190 |
|
if ((isset($mapping['index']) && is_array($mapping['index'])) + |