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