_relation->getQuery($this->model::className())->$name(...$arguments); } return call_user_func([$this, $name], ...$arguments); } /** * @return array|null|ModelInterface * @throws Exception */ public function get(): array|ModelInterface|null { return $this->_relation->count($this->model::className(), $this->value); } }