Пример #1
0
 /**
  * @inheritdoc
  * @return ActiveQuery the newly created [[ActiveQuery]] instance.
  */
 public static function find()
 {
     return Yii::createObject(ActiveQuery::className(), [get_called_class()]);
 }
Пример #2
0
 /**
  * @inheritdoc
  * @param array $options Additional options for the query class.
  * @return ActiveQuery the newly created [[ActiveQuery]] instance.
  */
 public static function find($options = [])
 {
     return Yii::createObject(ActiveQuery::className(), array_merge([get_called_class()], $options));
 }