@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | /** |
128 | 128 | * @param QueryInterface|ElementInterface[] $objects |
129 | 129 | * @param array $attributes |
130 | - * : @return RelationshipManagerInterface |
|
130 | + * : @return RelationshipManagerTrait |
|
131 | 131 | */ |
132 | 132 | public function setMany($objects, array $attributes = []): RelationshipManagerInterface |
133 | 133 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * @param QueryInterface|ElementInterface[] $objects |
159 | 159 | * @param array $attributes |
160 | - * : @return RelationshipManagerInterface |
|
160 | + * : @return RelationshipManagerTrait |
|
161 | 161 | */ |
162 | 162 | public function addMany($objects, array $attributes = []): RelationshipManagerInterface |
163 | 163 | { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * |
187 | 187 | * @param ActiveRecord|ElementInterface|int|array $object |
188 | 188 | * @param array $attributes |
189 | - * : @return RelationshipManagerInterface |
|
189 | + * : @return RelationshipManagerTrait |
|
190 | 190 | */ |
191 | 191 | public function addOne($object, array $attributes = []): RelationshipManagerInterface |
192 | 192 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * Dissociate an array of user associations from an organization |
219 | 219 | * |
220 | 220 | * @param QueryInterface|ElementInterface[] $objects |
221 | - * : @return RelationshipManagerInterface |
|
221 | + * : @return RelationshipManagerTrait |
|
222 | 222 | */ |
223 | 223 | public function removeMany($objects): RelationshipManagerInterface |
224 | 224 | { |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | * Dissociate a user from an organization |
247 | 247 | * |
248 | 248 | * @param ActiveRecord|ElementInterface|int|array |
249 | - * : @return RelationshipManagerInterface |
|
249 | + * : @return RelationshipManagerTrait |
|
250 | 250 | */ |
251 | 251 | public function removeOne($object): RelationshipManagerInterface |
252 | 252 | { |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | |
264 | 264 | /** |
265 | 265 | * Reset associations |
266 | - * : @return RelationshipManagerInterface |
|
266 | + * : @return RelationshipManagerTrait |
|
267 | 267 | */ |
268 | 268 | public function reset(): RelationshipManagerInterface |
269 | 269 | { |
@@ -8,10 +8,10 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\organizations\validators; |
10 | 10 | |
11 | +use Tightenco\Collect\Support\Collection; |
|
11 | 12 | use craft\helpers\Json; |
12 | -use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior; |
|
13 | 13 | use flipbox\organizations\Organizations as OrganizationPlugin; |
14 | -use Tightenco\Collect\Support\Collection; |
|
14 | +use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior; |
|
15 | 15 | use yii\base\Model; |
16 | 16 | use yii\validators\Validator; |
17 | 17 |