Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clear entityInsertions for specific entityName#5850

Closed
ricohumme wants to merge 4 commits into
doctrine:masterfrom
ricohumme:master
Closed

Clear entityInsertions for specific entityName#5850
ricohumme wants to merge 4 commits into
doctrine:masterfrom
ricohumme:master

Conversation

@ricohumme
Copy link
Copy Markdown
Contributor

See #5849

@Ocramius
Copy link
Copy Markdown
Member

Ocramius commented Jun 3, 2016

Requires test cases

@ricohumme
Copy link
Copy Markdown
Contributor Author

Test case provided

Comment thread lib/Doctrine/ORM/UnitOfWork.php Outdated
}

foreach ($this->entityInsertions as $hash => $entity) {
if (get_class($entity) != $entityName) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Strict comparison needed here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

=== or !==. Never rely on == and != unless strictly required to do so

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in latest commit

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ricohumme no need to comment on those: they disappear from the diff as soon as you push :-)

@Ocramius Ocramius added this to the 2.5.5 milestone Jun 3, 2016
@Ocramius Ocramius self-assigned this Jun 3, 2016
@Ocramius
Copy link
Copy Markdown
Member

Ocramius commented Jun 3, 2016

Test case provided

Thanks! \o/

@Ocramius
Copy link
Copy Markdown
Member

Ocramius commented Jun 5, 2016

Merged, thanks!

2.5 - 0af9ee0
master - 3bc61d5

Ocramius added a commit that referenced this pull request Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
@Ocramius Ocramius closed this in 3bc61d5 Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
…t with auto-generated identities+persist
Ocramius added a commit that referenced this pull request Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
Ocramius added a commit that referenced this pull request Jun 5, 2016
…so-its-entity-insertions-2.5' into 2.5

Close #5850
Close #5849
@ricohumme
Copy link
Copy Markdown
Contributor Author

Hi,

When will 2.5.5 be released? I'm waiting for this one for one of my projects,

Thnx in advance

alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
…ould not be built with auto-generated identities+persist
alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
alexgurrola pushed a commit to Sitetheory-Archive/doctrine2 that referenced this pull request Apr 13, 2017
…EntityInsertionsForEntityName`, for clarity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants