예제 #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}
  *
  * @return ActiveQuery the newly created [[ActiveQuery]] instance.
  */
 public static function find($options = [])
 {
     $config = ['class' => ActiveQuery::className(), 'options' => $options];
     return \Yii::createObject($config, [get_called_class()]);
 }