-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Fix doctrine/data-fixtures PR#334 #340
Fix doctrine/data-fixtures PR#334 #340
Conversation
@stephen-lewis can you please run this script from your fork? It should produce introduce for people who need to test. |
Sure; output below: How can I test this?composer config repositories.stephen-lewis vcs https://github.com/stephen-lewis/data-fixtures
composer require doctrine/data-fixtures "dev-bugfix/fix_errors_from_PR334 as 1.4.1" --edit: fix shell command typo |
@jgxvx please use the instructions above to test this on your project and report back 🙏 You might have to use the |
Please kindly squash your commits together. If you don't, we'll try to remember to do it for you but it's best if you save us this trouble. How to do that?
|
5b691c6
to
266c973
Compare
@greg0ire @stephen-lewis Glad to confirm that the fix works! |
@stephen-lewis please improve your commit message according to the contributing guide, then I will merge TL;DR say what was broken and how your changes improve the situation |
Change in 1.4.1 (doctrine#334) caused ORMPurger to generate quotes inside table names with mocked schemas leaving them invalid (e.g. test_schema__"group") becuase quoting strategy was ignored. Reverted changes to ORMPurger::getTableName and added new fucntion to mimic behaviour of SchemaTool in doctrine/orm when generating delete purge SQL. Unit tests included to check for correct SQL generation for tables both with and without schema. Fixes doctrine#338.
266c973
to
355199c
Compare
@greg0ire commit message should now be updated 😄 |
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.
Gorgeous commit message, thanks!
PR #334 broke existing code by adding quotes in the middle of table names that used schemas in SQLite - as reported in #338 .
I've reworked it into a cleaner function that mimics SchemaTool in doctrine/orm. Tests included and pass locally; I've also setup and run a simple test project locally using schema and non-schema entities without issue.