models/scopes/AddressQuery.php
public function active()
    {
        if(!\Yii::$app->user->isGuest && !\Yii::$app->user->identity->isAdmin)
        {
            $this->andWhere(['deleted_at' => NULL]);
        }
        return $this;
    }
public function active()
    {
        if(!\Yii::$app->user->isGuest && !\Yii::$app->user->identity->isAdmin)
        {
            $this->andWhere(['deleted_at' => NULL]);
        }
        return $this;
    }
public function active ( ) { if ( ! \ Yii :: $ app -> user -> isGuest && ! \ Yii :: $ app -> user -> identity -> isAdmin ) { $ this -> andWhere ( [ 'deleted_at' => NULL ] ) ; } return $ this ; }
only none delted records should be returned, deleted would mean they are not null anymore within field value
@return [type] [description]
only none delted records should be returned deleted would mean they are not null anymore within field value