/** * @inheritdoc */ public function order($field, $order = SORT_ASC) { if ($this->getScenario() != self::SCENARIO_GET) { throw new Exception('Query::order() only for scenario ' . self::SCENARIO_GET); } return parent::order($field, $order); }
/** * @return Admin[]|[] */ public function all() { return parent::all(); }