Skip to content

Commit

Permalink
Merge pull request #55 from doctrine/deprecate-persistent-object
Browse files Browse the repository at this point in the history
Deprecate PersistentObject class.
  • Loading branch information
jwage authored Apr 18, 2019
2 parents e530ccb + 353b565 commit 38dc039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions UPGRADE-1.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 3 additions & 0 deletions lib/Doctrine/Common/Persistence/PersistentObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 38dc039

Please sign in to comment.