andWhere(['related_entity' => $related_entity]) ->andWhere(['not', ['id' => $attachedRegulations]]) ->all(); } }