-
Notifications
You must be signed in to change notification settings - Fork 46
feat: implement caching for PostgreSQL #330
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
base: 2.x
Are you sure you want to change the base?
Conversation
fb394cc
to
85e1414
Compare
The append functionality works wrong. The |
85e1414
to
d254650
Compare
@@ -98,6 +98,8 @@ public function loadFixtures(array $classNames = [], bool $append = false): Abst | |||
|
|||
return $executor; | |||
} | |||
|
|||
$this->om->clear(); |
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.
Why this change? It looks unrelated to the feature of this PR.
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.
You are right. But I wanted the tests to work correctly. When I was writing tests for PostgreSQL, I found this change fix the ConfigPgsqlCacheDbTest::testLoadFixturesCheckReferences test and the ConfigMysqlCacheDbTest::testLoadFixturesCheckReferences test. I think this is the correct behavior when we reload fixtures without the append flag. Should I make the separated pull request for this changes?
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.
Yes, please split the changes unrelated to PgSQL in another PR.
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.
d254650
to
f302768
Compare
#329