/** * @inheritdoc */ public function defaultCriteria() { return parent::defaultCriteria()->merge([CriteriaKey::WITH => new WithRelations($this->withBase())]); }
/** * @inheritdoc */ public function defaultCriteria() { return parent::defaultCriteria()->merge([CriteriaKey::WITH => new WithRelations($this->withBase()), CriteriaKey::ORDER => new OrderBy(['date' => 'desc', 'createdts' => 'desc'])]); }