@@ -239,6 +239,9 @@ discard block |
||
| 239 | 239 | $class->addIndex($keys, $options); |
| 240 | 240 | } |
| 241 | 241 | |
| 242 | + /** |
|
| 243 | + * @param string $type |
|
| 244 | + */ |
|
| 242 | 245 | private function addEmbedMapping(ClassMetadata $class, $embed, $type) |
| 243 | 246 | { |
| 244 | 247 | $attributes = $embed->attributes(); |
@@ -276,6 +279,9 @@ discard block |
||
| 276 | 279 | $this->addFieldMapping($class, $mapping); |
| 277 | 280 | } |
| 278 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string $type |
|
| 284 | + */ |
|
| 279 | 285 | private function addReferenceMapping(ClassMetadata $class, $reference, $type) |
| 280 | 286 | { |
| 281 | 287 | $cascade = array_keys((array) $reference->cascade); |
@@ -492,7 +498,7 @@ discard block |
||
| 492 | 498 | * list($readPreference, $tags) = $this->transformReadPreference($xml->{read-preference}); |
| 493 | 499 | * |
| 494 | 500 | * @param \SimpleXMLElement $xmlReadPreference |
| 495 | - * @return array |
|
| 501 | + * @return string |
|
| 496 | 502 | */ |
| 497 | 503 | private function transformReadPreference($xmlReadPreference) |
| 498 | 504 | { |