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