public function __construct(DocumentManager $dm, PersistenceBuilder $pb, UnitOfWork $uow, $cmd) { $this->dm = $dm; $this->pb = $pb; $this->uow = $uow; $this->cmd = $cmd; }