-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IBX-1258: Fixed multiple FixtureImporter::import()
calls not resetting sequences
#245
Conversation
$queryTemplate, | ||
$sequenceName, | ||
$this->connection->quoteIdentifier($columnName), | ||
$this->connection->getDatabasePlatform()->getMaxExpression( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract $this->connection->getDatabasePlatform()
to the variable set outside of foreach
scope please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in bfbb062.
Additionally variable name containing tables that were not previously covered by sequence reset value generation is renamed from $diff
to $unvisitedTables
.
FixtureImporter::import()
calls not resetting sequencesFixtureImporter::import()
calls not resetting sequences
@alongosz codebase has been changed to include the fact that some tables might not have an autoincrement column - which in previous code would cause them to be constantly queried. This causes the |
Kudos, SonarCloud Quality Gate passed!
|
v3.3
This changes the internal cache for
FixtureImporter
, and how it is regenerated when new fixtures are imported.Previously, calling
FixtureImporter::import()
multiple times (with differentFixture
s) was possible, but sequence keys forFixture
s after the first one were not regenerated properly. This results in issues when different tests receive different fixtures, usually concluding in primary key constraint validations.Checklist:
Tested the solution manually.$ composer fix-cs
).@ezsystems/engineering-team
).