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