class NodeDuplicator (View source)

Handle node duplication.

Methods

__construct(Node $originalNode, EntityManager $em)

NodeDuplicator constructor.

duplicate()

Warning this method flush entityManager at its end.

Details

__construct(Node $originalNode, EntityManager $em)

NodeDuplicator constructor.

Parameters

Node $originalNode
EntityManager $em

Node duplicate()

Warning this method flush entityManager at its end.

Return Value

Node