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

Compute a changeset only once and reset after commit #130

Merged
merged 3 commits into from Apr 12, 2012

Conversation

uwej711
Copy link
Contributor

@uwej711 uwej711 commented Apr 11, 2012

Through the cascading of the changeset calculation (parent and child annotations) a changeset has been computed more than once in a single commit/flush.

Through the cascading of the changeset calculation (parent and child annotations) a changeset has been computed more than once in a single commit/flush.
@@ -1232,6 +1237,16 @@ public function commit($document = null)
$this->scheduledMoves =
$this->scheduledInserts =
$this->visitedCollections = array();

if (null === $document) {
$this->documentChangesets = array();
Copy link
Member

Choose a reason for hiding this comment

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

can't we just always reset this to an empty array?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I was too cautious ...

lsmith77 added a commit that referenced this pull request Apr 12, 2012
Compute a changeset only once and reset after commit
@lsmith77 lsmith77 merged commit aea067f into doctrine:master Apr 12, 2012
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.

None yet

2 participants