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

[2.0] Disallow nested commits #1722

Merged
merged 1 commit into from
Jan 9, 2018

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Jan 7, 2018

No description provided.

@malarzm malarzm added this to the 2.0.0 milestone Jan 7, 2018
@malarzm malarzm requested a review from alcaeus January 7, 2018 21:38
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


public static function commitInProgress()
{
return new self('There is already a commit operation in progress');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add an explanation, like did you call flush from an event listener?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asking about event listener is indeed better than just saying that flush from there is forbidden, adding it 👍

@malarzm malarzm merged commit adf0b7e into doctrine:master Jan 9, 2018
@malarzm malarzm deleted the nested-commit-exception branch January 9, 2018 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants