Doctrine\ORM\EntityManager::copy
Creates a copy of the given entity. Can create a shallow or a deep copy.
Signature
Parameters
$entity
— object- The entity to copy.
$deep
—
Returns
- The new entity.
Line | Task |
---|---|
649+ | Implementation need. This is necessary since $e2 = clone $e1; throws an E_FATAL when access anything on $e: |