portal.mkgtu.ru/common/components/queries/DictionaryQuery.php

12 lines
292 B
PHP
Executable File

<?php
namespace common\components\queries;
class DictionaryQuery extends ArchiveQuery
{
public function notMarkedToDelete()
{
return $this
->andWhere(['not', ["{$this->modelClass::tableName()}.{$this->modelClass::getDeletionMarkColumnName()}" => true]]);
}
}