/** * @inheritdoc */ public static function createQuery() { /** @noinspection PhpUndefinedFieldInspection */ $treeQuery = isset(self::$treeQueryClass) ? self::$treeQueryClass : TreeQuery::classname(); return new $treeQuery(['modelClass' => get_called_class()]); }
/** * @inheritdoc */ public static function createQuery() { $treeQuery = isset(self::$treeQueryClass) ? self::$treeQueryClass : TreeQuery::classname(); return new $treeQuery(['modelClass' => get_called_class()]); }