mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #82] [CLOSED] Moved isInitalized assignment to be after the persister load to prevent bad change set computations #7682
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/82
Author: @beckycase
Created: 7/8/2011
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
1377bc3Moved isInitalized assignment to be after the persister load. If set before, the entity isn't correctly entered into unitOfWork's originalData array due a failing if entity->isInitalized in createEntity. This causes the changeSet to be computed incorrectly during flush and in worse case scenarios can result in an additional bad insert of existing data.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
lib/Doctrine/ORM/Proxy/ProxyFactory.php(+1 -1)📄 Description
Moved isInitalized assignment to be after the persister load. If set before, the entity isn't correctly entered into unitOfWork's originalData array due a failing if entity->isInitalized in createEntity. This causes the changeSet to be computed incorrectly during flush and in worse case scenarios can result in an additional bad insert of existing data.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.