[CORE][DB] Remove doc from deprecated DB::merge and add about DB::refresh
This commit is contained in:
parent
338ea0ea58
commit
05b7f2c28b
|
@ -53,20 +53,21 @@ 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)
|
||||
* // 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.
|
||||
* // 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)
|
||||
* // Tells the EntityManager to make an instance managed and persistent.
|
||||
* // 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.
|
||||
* // Determines whether an entity instance is managed in this EntityManager.
|
||||
* @method static bool contains(object $entity)
|
||||
* // Flushes the in-memory state of persisted objects to the database.
|
||||
* // Flushes the in-memory state of persisted objects to the database.
|
||||
* @method static void flush()
|
||||
* // Executes a function in a transaction. Warning: suppresses exceptions. Returns the result of the callable.
|
||||
* // Executes a function in a transaction. Warning: suppresses exceptions. Returns the result of the callable.
|
||||
* @method mixed wrapInTransaction(callable $func)
|
||||
*/
|
||||
class DB
|
||||
|
|
Loading…
Reference in New Issue
Block a user