Browse Source

Merge branch 'develop'

feature/symfony6.1
Guillaume 2 years ago
parent
commit
c04ea74457
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Component/EntityComponent.php

+ 2
- 2
Component/EntityComponent.php View File



$this->eventDispatcher->dispatch(new EntityComponentEvent($newEntity), EntityComponentEvent::DUPLICATE_EVENT); $this->eventDispatcher->dispatch(new EntityComponentEvent($newEntity), EntityComponentEvent::DUPLICATE_EVENT);
//Ne pas utiliser create ici! Sinon pour certaine entité comme ProductFamily on réajoute un orginProduct //Ne pas utiliser create ici! Sinon pour certaine entité comme ProductFamily on réajoute un orginProduct
$this->entityManager->persist($newEntity);
$this->entityManager->create($newEntity, false);


return $newEntity; return $newEntity;
} }
} }
return $entity; return $entity;
} }
}
}

Loading…
Cancel
Save