@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * "where" condition nor any untrusted params. |
79 | 79 | * |
80 | 80 | * @access public |
81 | - * @param mixed $where |
|
81 | + * @param Where $where |
|
82 | 82 | * @param array $values |
83 | 83 | * @param string $suffix order by, limit, etc. |
84 | 84 | * @return CollectionIterator |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * Return the number of records matching a condition. |
121 | 121 | * |
122 | 122 | * @access public |
123 | - * @param string|Where $where |
|
123 | + * @param Where $where |
|
124 | 124 | * @param array $values |
125 | 125 | * @return int |
126 | 126 | */ |
@@ -10,7 +10,6 @@ |
||
10 | 10 | namespace PommProject\ModelManager; |
11 | 11 | |
12 | 12 | use PommProject\Foundation\Client\ClientHolder; |
13 | -use PommProject\Foundation\Session as FoundationSession; |
|
14 | 13 | use PommProject\Foundation\Session\Connection; |
15 | 14 | use PommProject\Foundation\Session\Session; |
16 | 15 | use PommProject\Foundation\SessionBuilder as FoundationSessionBuilder; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @access public |
39 | 39 | * @param FlexibleEntityInterface $entity |
40 | - * @return Model $this |
|
40 | + * @return WriteQueries $this |
|
41 | 41 | */ |
42 | 42 | public function insertOne(FlexibleEntityInterface &$entity) |
43 | 43 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @access public |
77 | 77 | * @param FlexibleEntityInterface $entity |
78 | 78 | * @param array $fields |
79 | - * @return Model $this |
|
79 | + * @return WriteQueries $this |
|
80 | 80 | */ |
81 | 81 | public function updateOne(FlexibleEntityInterface &$entity, array $fields) |
82 | 82 | { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * @param $where |
145 | 145 | * @param array $values |
146 | 146 | * @param array $updates |
147 | - * @return Model $this |
|
147 | + * @return WriteQueries $this |
|
148 | 148 | */ |
149 | 149 | public function updateWhere($where, array $values = [], array $updates) |
150 | 150 | { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * |
187 | 187 | * @access public |
188 | 188 | * @param FlexibleEntityInterface $entity |
189 | - * @return Model $this |
|
189 | + * @return WriteQueries $this |
|
190 | 190 | */ |
191 | 191 | public function deleteOne(FlexibleEntityInterface &$entity) |
192 | 192 | { |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * |
222 | 222 | * Delete records by a given condition. A collection of all deleted entries is returned. |
223 | 223 | * |
224 | - * @param $where |
|
224 | + * @param Where $where |
|
225 | 225 | * @param array $values |
226 | 226 | * @return CollectionIterator |
227 | 227 | */ |