classChoiceDefinitionException
final class ChoiceDefinitionException
extends PlanStructureException
A relation choice cannot describe an unambiguous row dependency.
Methods§
public function __construct(ColumnRef $discriminator, string $reason)Identifies the discriminator and the invalid part of its definition.
Parameters
$discriminator | ColumnRef | |
$reason | string |
Calls 3
- static-call PlanStructureException::__construct() line 20
- function-call
sprintfline 20 - method-call ColumnRef::toString() line 20
Test cases 19§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 18
CaseSelectionTestcallsChoiceBindingsTestcallsChoiceValueExceptionTestcallsInverseRelationsTestcallsResolvedRowTestcallsRowChoicesTestcallsRecursiveRelationExceptionTestcallsRelationValueExceptionTestcallsRowBindingsTestcallsPlanGeneratorTestcallsChoiceCaseTestcallsChoiceLiteralTestcallsChoiceSyntaxTestcallsChoiceValidationTestcallsPlanContentsTestcallsFixturePlanTestcallsRelationChoiceTestcallsFixtureProviderTestcalls
Relations§
Instantiated in 8
- new SqlFixture\Plan\Choice\ChoiceValidation::validate() packages/sql-fixture/src/Plan/Choice/ChoiceValidation.php:27
- new SqlFixture\Plan\Choice\ChoiceValidation::validateChoice() packages/sql-fixture/src/Plan/Choice/ChoiceValidation.php:42
- new SqlFixture\Plan\Choice\ChoiceValidation::validateChoice() packages/sql-fixture/src/Plan/Choice/ChoiceValidation.php:47
- new SqlFixture\Plan\Choice\ChoiceValidation::validateRelation() packages/sql-fixture/src/Plan/Choice/ChoiceValidation.php:66
- new SqlFixture\Plan\Choice\ChoiceValidation::validateRelation() packages/sql-fixture/src/Plan/Choice/ChoiceValidation.php:70
- new SqlFixture\Plan\RelationChoice::__construct() packages/sql-fixture/src/Plan/RelationChoice.php:31
- new SqlFixture\Plan\RelationChoice::when() packages/sql-fixture/src/Plan/RelationChoice.php:51
- new SqlFixture\Plan\RelationChoice::otherwise() packages/sql-fixture/src/Plan/RelationChoice.php:65