public function ObjectManagerDecorator::persist in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php \Doctrine\Common\Persistence\ObjectManagerDecorator::persist()
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
Overrides ObjectManager::persist
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ ObjectManagerDecorator.php, line 48
Class
- ObjectManagerDecorator
- Base class to simplify ObjectManager decorators
Namespace
Doctrine\Common\PersistenceCode
public function persist($object) {
return $this->wrapped
->persist($object);
}