portal.mkgtu.ru/common/modules/abiturient/models/repositories/RegulationRepository.php

23 lines
438 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?php
namespace common\modules\abiturient\models\repositories;
use common\models\Regulation;
class RegulationRepository
{
public static function GetNotExistingRegulationsForEntity($related_entity, $attachedRegulations): array
{
return Regulation::find()
->andWhere(['related_entity' => $related_entity])
->andWhere(['not', ['id' => $attachedRegulations]])
->all();
}
}