public function __construct($className, EventBusInterface $eventBus, LockManagerInterface $lockManager, EntityManager $entityManager)
 {
     parent::__construct($className, $eventBus, $lockManager);
     $this->entityManager = $entityManager;
 }
 public function __construct($className, EventBusInterface $eventBus, LockManagerInterface $lockManager)
 {
     parent::__construct($className, $eventBus, $lockManager);
 }
 protected function validateOnLoad(AggregateRootInterface $object, $expectedVersion)
 {
     if (null === $this->conflictResolver) {
         parent::validateOnLoad($object, $expectedVersion);
     }
 }