@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param boolean $hydrate |
98 | 98 | * @param boolean $refresh |
99 | 99 | * @param array $primers |
100 | - * @param null $requireIndexes |
|
100 | + * @param boolean $requireIndexes |
|
101 | 101 | */ |
102 | 102 | public function __construct(DocumentManager $dm, ClassMetadata $class, Collection $collection, array $query = array(), array $options = array(), $hydrate = true, $refresh = false, array $primers = array(), $requireIndexes = null) |
103 | 103 | { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | /** |
207 | 207 | * Gets an array of the unindexed fields in this query. |
208 | 208 | * |
209 | - * @return array |
|
209 | + * @return string |
|
210 | 210 | */ |
211 | 211 | public function getUnindexedFields() |
212 | 212 | { |
@@ -22,8 +22,6 @@ |
||
22 | 22 | use Doctrine\MongoDB\Collection; |
23 | 23 | use Doctrine\MongoDB\Cursor as BaseCursor; |
24 | 24 | use Doctrine\MongoDB\CursorInterface; |
25 | -use Doctrine\MongoDB\EagerCursor as BaseEagerCursor; |
|
26 | -use Doctrine\MongoDB\Iterator; |
|
27 | 25 | use Doctrine\ODM\MongoDB\Cursor; |
28 | 26 | use Doctrine\ODM\MongoDB\DocumentManager; |
29 | 27 | use Doctrine\ODM\MongoDB\EagerCursor; |
@@ -117,7 +117,6 @@ discard block |
||
117 | 117 | * Converts a composite expression into the target query language output. |
118 | 118 | * |
119 | 119 | * @see ExpressionVisitor::walkCompositeExpression() |
120 | - * @param CompositeExpression $expr |
|
121 | 120 | * @return \Doctrine\ODM\MongoDB\Query\Expr |
122 | 121 | */ |
123 | 122 | public function walkCompositeExpression(CompositeExpression $compositeExpr) |
@@ -141,7 +140,7 @@ discard block |
||
141 | 140 | * |
142 | 141 | * @see ExpressionVisitor::walkValue() |
143 | 142 | * @param Value $value |
144 | - * @return mixed |
|
143 | + * @return string |
|
145 | 144 | */ |
146 | 145 | public function walkValue(Value $value) |
147 | 146 | { |
@@ -331,6 +331,7 @@ discard block |
||
331 | 331 | |
332 | 332 | /** |
333 | 333 | * Should an existing document be backed up if it already exists? |
334 | + * @param boolean $bool |
|
334 | 335 | */ |
335 | 336 | public function setBackupExisting($bool) |
336 | 337 | { |
@@ -770,6 +771,10 @@ discard block |
||
770 | 771 | return implode("\n", $lines); |
771 | 772 | } |
772 | 773 | |
774 | + /** |
|
775 | + * @param string $type |
|
776 | + * @param string $defaultValue |
|
777 | + */ |
|
773 | 778 | private function generateDocumentStubMethod(ClassMetadataInfo $metadata, $type, $fieldName, $typeHint = null, $defaultValue = null) |
774 | 779 | { |
775 | 780 | // Add/remove methods should use the singular form of the field name |
@@ -954,6 +959,9 @@ discard block |
||
954 | 959 | return implode("\n", $lines); |
955 | 960 | } |
956 | 961 | |
962 | + /** |
|
963 | + * @param integer $type |
|
964 | + */ |
|
957 | 965 | private function getInheritanceTypeString($type) |
958 | 966 | { |
959 | 967 | switch ($type) { |
@@ -971,6 +979,9 @@ discard block |
||
971 | 979 | } |
972 | 980 | } |
973 | 981 | |
982 | + /** |
|
983 | + * @param integer $policy |
|
984 | + */ |
|
974 | 985 | private function getChangeTrackingPolicyString($policy) |
975 | 986 | { |
976 | 987 | switch ($policy) { |
@@ -988,6 +999,9 @@ discard block |
||
988 | 999 | } |
989 | 1000 | } |
990 | 1001 | |
1002 | + /** |
|
1003 | + * @param string $type |
|
1004 | + */ |
|
991 | 1005 | private function getIdGeneratorTypeString($type) |
992 | 1006 | { |
993 | 1007 | switch ($type) { |
@@ -2811,7 +2811,7 @@ |
||
2811 | 2811 | * @param array $data The data for the document. |
2812 | 2812 | * @param array $hints Any hints to account for during reconstitution/lookup of the document. |
2813 | 2813 | * @param object The document to be hydrated into in case of creation |
2814 | - * @return object The document instance. |
|
2814 | + * @return callable|null The document instance. |
|
2815 | 2815 | * @internal Highly performance-sensitive method. |
2816 | 2816 | */ |
2817 | 2817 | public function getOrCreateDocument($className, $data, &$hints = array(), $document = null) |