public function preRemove(Item $item, LifecycleEventArgs $event)
    {
        $interaction = $item->getInteraction();
        if (null !== $interaction) {
            $event->getEntityManager()->remove($interaction);
        }
    }
public function preRemove(Item $item, LifecycleEventArgs $event)
    {
        $interaction = $item->getInteraction();
        if (null !== $interaction) {
            $event->getEntityManager()->remove($interaction);
        }
    }
public function preRemove ( Item $ item , LifecycleEventArgs $ event ) { $ interaction = $ item -> getInteraction ( ) ; if ( null !== $ interaction ) { $ event -> getEntityManager ( ) -> remove ( $ interaction ) ; } }
Deletes the entity that holds the item type data when an Item is deleted.

@param Item               $item
@param LifecycleEventArgs $event
Deletes the entity that holds the item type data when an Item is deleted .