classTableTransition
final class TableTransition
What happened to one table, as the rows themselves rather than as a count.
A referential action is decided by the values in the rows that moved, so what a statement did has to be carried around as those rows and not as the number of them.
Type Aliases§
Row = import from TableDefinitionProperties§
public string $tablepublic array<int, Row> $deletedpublic list<RowChange> $updatedMethods§
public function __construct(
public string $table,
public array<int, Row> $deleted,
public list<RowChange> $updated,
)Parameters
public function isEmpty(): boolReports whether nothing happened to the table.
Returns
bool True when no row was deleted and none was changedTest cases 3
TableTransitionTest::testIsEmptyWhenNothingWasDeletedAndNothingChangedcovers and callsTableTransitionTest::testIsNotEmptyWhenARowChangedcovers and callsTableTransitionTest::testIsNotEmptyWhenARowWasDeletedcovers and calls
Test cases 12§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
TableTransitionTest::testIsEmptyWhenNothingWasDeletedAndNothingChangedcovers and callsTableTransitionTest::testIsNotEmptyWhenARowChangedcovers and callsTableTransitionTest::testIsNotEmptyWhenARowWasDeletedcovers and callsTableTransitionTest::testKeepsTheTableAndTheRowsThatMovedcovers and calls
Other tests reaching this symbol 8
SessionTestcallsForeignKeyCascadeTest::testOfCarriesTheNewKeyToTheChildrenOfAnUpdatedParentcallsForeignKeyCascadeTest::testOfDeletesTheChildrenOfADeletedParentWhereTheActionSaysToCascadecallsForeignKeyCascadeTest::testOfFollowsNothingThroughAKeyWhoseEndsDisagreecallsForeignKeyCascadeTest::testOfLeavesTheChildrenAloneWhileAnotherParentRowHoldsTheKeyUpcallsReferentialIntegrityEnforcerTestcallsShadowApplicationTestcallsTableTransitionsTestcalls