Cloner
class Cloner implements ApplicationAwareInterface (View source)
Class to clone express entities.
Traits
Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface
Properties
protected Application | $app | from ApplicationAwareTrait | |
private EntityHandleGenerator | $entityHandleGenerator | ||
private EntityManagerInterface | $entityManager |
Methods
__construct(EntityHandleGenerator $entityHandleGenerator, EntityManagerInterface $entityManager)
Cloner constructor.
cloneEntity(Entity $entity, array $controlsMapping = [])
Duplicate Express Entity and return the newly created Entity.
array
array
void
cloneEntityForms(Entity $sourceEntity, Entity $destinationEntity, array $akMapping, array $associationMapping, array $controlsMapping = [])
Clone Entity Forms
Details
setApplication(Application $app)
Setter method for the application
__construct(EntityHandleGenerator $entityHandleGenerator, EntityManagerInterface $entityManager)
Cloner constructor.
Entity
cloneEntity(Entity $entity, array $controlsMapping = [])
Duplicate Express Entity and return the newly created Entity.
protected array
cloneEntityAttributes(Entity $sourceEntity, Entity $destinationEntity)
Clone Entity Attributes
protected array
cloneEntityAssociations(Entity $sourceEntity, Entity $destinationEntity)
Clone Entity Associations