23 lines
438 B
PHP
Executable File
23 lines
438 B
PHP
Executable File
<?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();
|
|
}
|
|
} |