/** * {@inheritdoc} * * @return ActiveQuery the newly created [[ActiveQuery]] instance. */ public static function find() { return \Yii::createObject(ActiveQuery::className(), [get_called_class()]); }
/** * {@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()]); }