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