mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #181] [CLOSED] make merge copy non persisted properties too #7823
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/181
Author: @docteurklein
Created: 11/2/2011
Status: ❌ Closed
Base:
master← Head:merge_non_mapped_properties📝 Commits (1)
d827f8dmake merge copy non persited properties too📊 Changes
3 files changed (+35 additions, -2 deletions)
View changed files
📝
lib/Doctrine/ORM/UnitOfWork.php(+3 -1)📝
tests/Doctrine/Tests/Models/CMS/CmsUser.php(+5 -1)📝
tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php(+27 -0)📄 Description
The behavior of merging should be to return a managed object with exactly the same values than the detached one.
The problem was that it only copies persistable properties.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.