Skip to content

Commit

Permalink
Add ObjectManager::isUninitializedEntity()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 10, 2023
1 parent 63fee8c commit a75a649
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ awareness about deprecated code.
- Use of our low-overhead runtime deprecation API, details:
https://github.com/doctrine/deprecations/

# Upgrade to 3.1
# Upgrade to 3.3

## Added method `Proxy::__setInitialized()`
## Added method `ObjectManager::isUninitializedEntity()`

Classes implementing `Doctrine\Persistence\Proxy` should implement the new
Classes implementing `Doctrine\Persistence\ObjectManager` should implement the new
method. This method will be added to the interface in 4.0.

# Upgrade to 3.1

## Deprecated `RuntimePublicReflectionProperty`

Use `RuntimeReflectionProperty` instead.
Expand Down
2 changes: 2 additions & 0 deletions src/Persistence/ObjectManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* Contract for a Doctrine persistence layer ObjectManager class to implement.
*
* @method bool isUninitializedEntity(mixed $value)
*/
interface ObjectManager
{
Expand Down
1 change: 0 additions & 1 deletion src/Persistence/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* Interface for proxy classes.
*
* @template T of object
* @method void __setInitialized(bool $initialized) Implementing this method will be mandatory in version 4.
*/
interface Proxy
{
Expand Down

0 comments on commit a75a649

Please sign in to comment.