@@ -8,15 +8,15 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\organizations\relationships; |
10 | 10 | |
11 | +use Tightenco\Collect\Support\Collection; |
|
11 | 12 | use craft\elements\User; |
12 | 13 | use craft\helpers\ArrayHelper; |
13 | 14 | use craft\helpers\Json; |
14 | 15 | use flipbox\craft\ember\helpers\QueryHelper; |
15 | -use flipbox\organizations\elements\Organization; |
|
16 | 16 | use flipbox\organizations\Organizations; |
17 | +use flipbox\organizations\elements\Organization; |
|
17 | 18 | use flipbox\organizations\queries\UserAssociationQuery; |
18 | 19 | use flipbox\organizations\records\UserAssociation; |
19 | -use Tightenco\Collect\Support\Collection; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Manages Organizations associated to Users |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @param $objects |
140 | 140 | * @param array $attributes |
141 | - * @return RelationshipInterface |
|
141 | + * @return RelationshipTrait |
|
142 | 142 | */ |
143 | 143 | public function add($objects, array $attributes = []): RelationshipInterface |
144 | 144 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | |
164 | 164 | /** |
165 | 165 | * @param $objects |
166 | - * @return RelationshipInterface |
|
166 | + * @return RelationshipTrait |
|
167 | 167 | */ |
168 | 168 | public function remove($objects): RelationshipInterface |
169 | 169 | { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | /** |
185 | 185 | * Reset associations |
186 | - * @return RelationshipInterface |
|
186 | + * @return RelationshipTrait |
|
187 | 187 | */ |
188 | 188 | public function reset(): RelationshipInterface |
189 | 189 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | |
195 | 195 | /** |
196 | 196 | * Reset associations |
197 | - * @return RelationshipInterface |
|
197 | + * @return RelationshipTrait |
|
198 | 198 | */ |
199 | 199 | public function clear(): RelationshipInterface |
200 | 200 | { |
@@ -8,16 +8,16 @@ |
||
8 | 8 | |
9 | 9 | namespace flipbox\organizations\relationships; |
10 | 10 | |
11 | -use craft\elements\db\UserQuery; |
|
11 | +use Tightenco\Collect\Support\Collection; |
|
12 | 12 | use craft\elements\User; |
13 | +use craft\elements\db\UserQuery; |
|
13 | 14 | use craft\helpers\ArrayHelper; |
14 | 15 | use craft\helpers\Json; |
15 | 16 | use flipbox\craft\ember\helpers\QueryHelper; |
16 | -use flipbox\organizations\elements\Organization; |
|
17 | 17 | use flipbox\organizations\Organizations; |
18 | +use flipbox\organizations\elements\Organization; |
|
18 | 19 | use flipbox\organizations\queries\UserAssociationQuery; |
19 | 20 | use flipbox\organizations\records\UserAssociation; |
20 | -use Tightenco\Collect\Support\Collection; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Manages Users associated to Organizations |