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