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