12345678910111213141516171819202122232425262728 |
- <?php
- namespace common\services;
- use common\models\OperationalAdjustmentsRelateToSourceData;
- use yii\db\ActiveQuery;
- class OperationalAdjustmentsRelateToSourceDataService
- {
- /**
- * return OperationalAdjustmentsRelateToSourceData::find();
- * @return ActiveQuery
- */
- public static function getQuery(): ActiveQuery
- {
- return OperationalAdjustmentsRelateToSourceData::find();
- }
- /**
- * return OperationalAdjustmentsRelateToSourceData::find()->andWhere(["emergency_response_id" => $emergencyResponseId])
- * @param $operationalAdjustmentsId
- * @return ActiveQuery
- */
- public static function getQueryByEmergencyResponseId($operationalAdjustmentsId): ActiveQuery
- {
- return self::getQuery()->andWhere(["operational_adjustments_id" => $operationalAdjustmentsId]);
- }
- }
|