class NodeDuplicator (View source)

Handle node duplication.

Methods

__construct(Node $originalNode, ObjectManager $em)

NodeDuplicator constructor.

duplicate()

Warning this method flush entityManager at its end.

Details

__construct(Node $originalNode, ObjectManager $em)

NodeDuplicator constructor.

Parameters

Node $originalNode
ObjectManager $em

Node duplicate()

Warning this method flush entityManager at its end.

Return Value

Node