You are here

public function ObjectManager::persist in Plug 7

Tells the ObjectManager to make an instance managed and persistent.

The object will be entered into the database as a result of the flush operation.

NOTE: The persist operation always considers objects that are not yet known to this ObjectManager as NEW. Do not pass detached objects to the persist operation.

Parameters

object $object The instance to make managed and persistent.:

Return value

void

1 method overrides ObjectManager::persist()
ObjectManagerDecorator::persist in lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php
Tells the ObjectManager to make an instance managed and persistent.

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManager.php, line 56

Class

ObjectManager
Contract for a Doctrine persistence layer ObjectManager class to implement.

Namespace

Doctrine\Common\Persistence

Code

public function persist($object);