models/AuthAssignment.php
public static function userAssignments($user)
    {
        $names = self::find()->where(['user_id' => $user->id])->select('item_name')->column();
        return AuthItem::find()->where(['in', 'name', $names]);
    }
public static function userAssignments($user)
    {
        $names = self::find()->where(['user_id' => $user->id])->select('item_name')->column();
        return AuthItem::find()->where(['in', 'name', $names]);
    }
public static function userAssignments ( $ user ) { $ names = self :: find ( ) -> where ( [ 'user_id' => $ user -> id ] ) -> select ( 'item_name' ) -> column ( ) ; return AuthItem :: find ( ) -> where ( [ 'in' , 'name' , $ names ] ) ; }
Searches all user assignments.
@param object $user user instance
@return \yii\web\Query search object
Searches all user assignments .