Ejemplo n.º 1
0
 /**
  * @param LifecycleEventArgs $args
  */
 public function preRemove(LifecycleEventArgs $args)
 {
     $entity = $args->getEntity();
     if ($this->taggableHelper->isTaggable($entity)) {
         if (null === $this->tagManager && $this->container) {
             $this->tagManager = $this->container->get('oro_tag.tag.manager');
         }
         $this->tagManager->deleteTagging($entity, []);
     }
 }