diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index 7ed74cf97..c022fe98a 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -20,7 +20,6 @@ use Yiisoft\Db\QueryBuilder\QueryBuilderInterface; use Yiisoft\Definitions\Exception\CircularReferenceException; use Yiisoft\Definitions\Exception\NotInstantiableException; -use Yiisoft\Factory\NotFoundException; use function array_column; use function array_combine; @@ -161,7 +160,6 @@ public function each(int $batchSize = 100): BatchQueryResultInterface * @throws CircularReferenceException * @throws Exception * @throws InvalidConfigException - * @throws NotFoundException * @throws NotInstantiableException * @throws Throwable * @throws \Yiisoft\Definitions\Exception\InvalidConfigException @@ -285,7 +283,6 @@ public function populate(array $rows, Closure|string|null $indexBy = null): arra * @throws CircularReferenceException * @throws Exception * @throws InvalidConfigException - * @throws NotFoundException * @throws NotInstantiableException * * @return array The distinctive models. @@ -471,7 +468,6 @@ public function resetJoinWith(): void /** * @throws CircularReferenceException * @throws InvalidConfigException - * @throws NotFoundException * @throws NotInstantiableException * @throws \Yiisoft\Definitions\Exception\InvalidConfigException */ @@ -550,7 +546,6 @@ public function innerJoinWith(array|string $with, array|bool $eagerLoading = tru * * @throws CircularReferenceException * @throws InvalidConfigException - * @throws NotFoundException * @throws NotInstantiableException * @throws \Yiisoft\Definitions\Exception\InvalidConfigException */ @@ -633,7 +628,6 @@ private function getJoinType(array|string $joinType, string $name): string * * @throws CircularReferenceException * @throws InvalidConfigException - * @throws NotFoundException * @throws NotInstantiableException */ private function getTableNameAndAlias(): array @@ -670,9 +664,8 @@ private function getTableNameAndAlias(): array * @param string $joinType The join type. * * @throws CircularReferenceException - * @throws NotFoundException * @throws NotInstantiableException - * @throws \Yiisoft\Definitions\Exception\InvalidConfigException + * @throws InvalidConfigException */ private function joinWithRelation(ActiveQueryInterface $parent, ActiveQueryInterface $child, string $joinType): void { @@ -837,7 +830,6 @@ public function alias(string $alias): self /** * @throws CircularReferenceException * @throws InvalidArgumentException - * @throws NotFoundException * @throws NotInstantiableException * @throws \Yiisoft\Definitions\Exception\InvalidConfigException */ @@ -852,7 +844,6 @@ public function getTablesUsedInFrom(): array /** * @throws CircularReferenceException - * @throws NotFoundException * @throws NotInstantiableException * @throws \Yiisoft\Definitions\Exception\InvalidConfigException */ @@ -918,7 +909,6 @@ public function findAll(mixed $condition): array * @throws CircularReferenceException * @throws Exception * @throws InvalidArgumentException - * @throws NotFoundException * @throws NotInstantiableException */ protected function findByCondition(mixed $condition): static diff --git a/src/ActiveQueryInterface.php b/src/ActiveQueryInterface.php index 50ffe16a7..3d37e02ea 100644 --- a/src/ActiveQueryInterface.php +++ b/src/ActiveQueryInterface.php @@ -13,7 +13,6 @@ use Yiisoft\Db\Query\QueryInterface; use Yiisoft\Definitions\Exception\CircularReferenceException; use Yiisoft\Definitions\Exception\NotInstantiableException; -use Yiisoft\Factory\NotFoundException; /** * Defines the common interface to be implemented by active record query classes. @@ -274,7 +273,6 @@ public function viaTable(string $tableName, array $link, callable $callable = nu * @param string $alias The table alias. * * @throws CircularReferenceException - * @throws NotFoundException * @throws NotInstantiableException * @throws \Yiisoft\Definitions\Exception\InvalidConfigException */ @@ -287,7 +285,6 @@ public function alias(string $alias): self; * * @throws CircularReferenceException * @throws InvalidArgumentException - * @throws NotFoundException * @throws NotInstantiableException * @throws \Yiisoft\Definitions\Exception\InvalidConfigException */ @@ -591,7 +588,6 @@ public function getLink(): array; /** * @throws CircularReferenceException * @throws InvalidConfigException - * @throws NotFoundException * @throws NotInstantiableException * @return ActiveRecordInterface The model instance associated with this query. */