Skip to content

Deprecate DocumentManager::merge #2435

Open
@malarzm

Description

@malarzm

The merge method is removed from the ObjectManager interface in doctrine/persistence 3.0 and as such we are free to deprecate (and eventually remove) it as well. Throughout the years the merge operation was one of the most misused functionality across all Doctrine's data mappers. Having said that the merge functionality has its value when caching comes into play, especially since the ODM does not provide a second level cache (like ORM does). Removing merge without any replacement (as we plan) would effectively block users from upgrading to a next major version.

Given the circumstances we're not deprecating merge just yet, consider this issue as a friendly warning instead. If you use merging documents for performance reasons please do let us know! If no (valid TM) objections are raised and enough (TM) time passes we may proceed with deprecation process before the 3.0 release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions