@@ -13,9 +13,9 @@ |
||
| 13 | 13 | use craft\helpers\ArrayHelper; |
| 14 | 14 | use craft\helpers\Json; |
| 15 | 15 | use flipbox\craft\ember\helpers\QueryHelper; |
| 16 | +use flipbox\organizations\Organizations; |
|
| 16 | 17 | use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior; |
| 17 | 18 | use flipbox\organizations\elements\Organization; |
| 18 | -use flipbox\organizations\Organizations; |
|
| 19 | 19 | use flipbox\organizations\queries\UserAssociationQuery; |
| 20 | 20 | use flipbox\organizations\records\UserAssociation; |
| 21 | 21 | |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @noinspection PhpDocMissingThrowsInspection |
| 24 | 24 | * |
| 25 | - * @param $value |
|
| 25 | + * @param DateTime $value |
|
| 26 | 26 | * @return $this |
| 27 | 27 | */ |
| 28 | 28 | public function setDateJoined($value) |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | /** |
| 39 | 39 | * Validates a single attribute. |
| 40 | 40 | * Child classes must implement this method to provide the actual validation logic. |
| 41 | - * @param Model|OrganizationsAssociatedToUserBehavior $model the data model to be validated |
|
| 41 | + * @param \craft\elements\User $model the data model to be validated |
|
| 42 | 42 | * @param string $attribute the name of the attribute to be validated. |
| 43 | 43 | */ |
| 44 | 44 | public function validateAttribute($model, $attribute) |
@@ -9,8 +9,8 @@ |
||
| 9 | 9 | namespace flipbox\organizations\validators; |
| 10 | 10 | |
| 11 | 11 | use craft\helpers\Json; |
| 12 | -use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior; |
|
| 13 | 12 | use flipbox\organizations\Organizations as OrganizationPlugin; |
| 13 | +use flipbox\organizations\behaviors\OrganizationsAssociatedToUserBehavior; |
|
| 14 | 14 | use yii\base\Model; |
| 15 | 15 | use yii\validators\Validator; |
| 16 | 16 | |