enumRelationSide
enum RelationSide
Which end of a written relation is meant, before roles are worked out.
order.id < order_detail.order_id and order_detail.order_id > order.id describe the same relation with the sides swapped, so parent and child are derived from the operator rather than from the order they were written in.
Cases§
case Leftcase RightMethods§
public function opposite(): selfReturns opposite.
Returns
selfCalls 2
- class-const RelationSide::Left() line 24
- class-const RelationSide::Right() line 24
Test cases 36§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 34
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsConnectedTablesTestcallsOverrideSpecsTestcallsRelationCountsTestcallsRelationProjectionTestcallsRowMaterializerTestcallsGenerationRunTestcallsPlanGeneratorTestcallsPlanSchemaExceptionTestcallsPlanSchemaValidatorTestcallsEndpointValidatorTestcallsFixtureProviderTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsColumnRefTestcallsFixturePlanTestcallsPlanStatementsTestcallsRelationCursorTestcallsRelationReaderTestcallsPlanParserTestcallsPlanPrinterTestcallsPlanStructureExceptionTestcallsPlanSyntaxExceptionTestcallsPlanTablesTestcallsRelationGroupsTestcallsStatementPrinterTestcallsRelationKindTest::testChildSideManyToOnePutsTheParentOnTheRightcallsRelationKindTest::testOneToOnePutsTheParentOnTheLeftcallsRelationKindTest::testParentSideOneToManyPutsTheParentOnTheLeftcallsRelationTestcallsPlanValidationTestcallsTableNameTestcallsSqlSchemaProviderTestcalls
Relations§
Constant reads 6
- class-const SqlFixture\Plan\Relation::parent() packages/sql-fixture/src/Plan/Relation.php:112
- class-const SqlFixture\Plan\Relation::child() packages/sql-fixture/src/Plan/Relation.php:120
- class-const SqlFixture\Plan\Relation::parentIsOptional() packages/sql-fixture/src/Plan/Relation.php:128
- class-const SqlFixture\Plan\Relation::childIsOptional() packages/sql-fixture/src/Plan/Relation.php:139
- class-const SqlFixture\Plan\RelationKind::parentSide() packages/sql-fixture/src/Plan/RelationKind.php:35
- class-const SqlFixture\Plan\RelationKind::parentSide() packages/sql-fixture/src/Plan/RelationKind.php:36