[CORE][DB] Remove doc from deprecated DB::merge and add about DB::refresh

This commit is contained in:
Diogo Peralta Cordeiro 2022-02-23 17:02:41 +00:00
parent 338ea0ea58
commit 05b7f2c28b
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 9 additions and 8 deletions

View File

@ -53,13 +53,14 @@ use Functional as F;
* @template T of Entity
*
* // Finds an Entity by its identifier. You probably want to use DB::findBy instead
*
* @method static ?T find(string $class, array<string, mixed> $values)
* // Special cases: It's like find but does not load the object if it has not been loaded yet, it only returns a proxy to the object. (https://www.doctrine-project.org/projects/doctrine-orm/en/2.10/reference/unitofwork.html)
* @method static ?T getReference(string $class, array<string, mixed> $values)
* // Removes an entity instance.
* @method static void remove(object $entity)
* // Merges the state of a detached entity into the persistence context
* @method static T merge(object $entity)
* // Refreshes the persistent state of a managed entity, i.e., overriding any local changes
* @method static void refresh(object $entity)
* // Tells the EntityManager to make an instance managed and persistent.
* @method static void persist(object $entity)
* // Determines whether an entity instance is managed in this EntityManager.