Skip to content
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

Disable foreign key checks with truncating with MySQL #73

Merged
merged 1 commit into from
Nov 25, 2017

Conversation

theofidry
Copy link
Owner

Closes #63.

@theofidry theofidry merged commit a4d611f into master Nov 25, 2017
@theofidry theofidry deleted the bugfix/mysql-truncate branch November 25, 2017 16:11
@spacetraveller
Copy link

What is the status of this, so confusing. It would just be nice if this bundle had a parameter to remove foreign key checks and truncate, without the argument over who owns this issue.

@theofidry
Copy link
Owner Author

theofidry commented Feb 11, 2018

You have the option default_purge_mode to pick the one you want and in the case of MySQL FK checks are disabled automatically.

When Doctrine DataFixtures will ship that in their purge we will be able to remove it here, but in the meantime it's done here.

Is there anything there still confusing you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants