From 353b565a2eaa061b1e6863dbbd96287a88d56b29 Mon Sep 17 00:00:00 2001 From: "Jonathan H. Wage" Date: Thu, 18 Apr 2019 11:09:03 -0500 Subject: [PATCH] Deprecate PersistentObject class. --- UPGRADE-1.2.md | 1 + lib/Doctrine/Common/Persistence/PersistentObject.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/UPGRADE-1.2.md b/UPGRADE-1.2.md index f1da66d7..0c0115d0 100644 --- a/UPGRADE-1.2.md +++ b/UPGRADE-1.2.md @@ -3,3 +3,4 @@ UPGRADE FROM 1.x to 1.2 * Deprecated `ObjectManager::merge()`. Please handle merge operations in your application instead. * Deprecated `ObjectManager::detach()`. Please use `ObjectManager::clear()` instead. +* Deprecated `PersistentObject` class. Please implement this functionality directly in your application if you want ActiveRecord style functionality. diff --git a/lib/Doctrine/Common/Persistence/PersistentObject.php b/lib/Doctrine/Common/Persistence/PersistentObject.php index 9bd276f0..cf3b12ae 100644 --- a/lib/Doctrine/Common/Persistence/PersistentObject.php +++ b/lib/Doctrine/Common/Persistence/PersistentObject.php @@ -28,6 +28,9 @@ * 5. Only the inverse side associations get autoset on the owning side as well. Setting objects on the owning side * will not set the inverse side associations. * + * @deprecated Deprecated `PersistentObject` class in 1.2. Please implement this functionality + * directly in your application if you want ActiveRecord style functionality. + * * @example * * PersistentObject::setObjectManager($em);