private function detachAndPersist($entity)
    {
        $this->em->detach($entity);
        $this->em->persist($entity);
    }
private function detachAndPersist($entity)
    {
        $this->em->detach($entity);
        $this->em->persist($entity);
    }
private function detachAndPersist ( $ entity ) { $ this -> em -> detach ( $ entity ) ; $ this -> em -> persist ( $ entity ) ; }
For cloning purpose

@param ContentInterface|\Opifer\EavBundle\Model\ValueSetInterface|\Opifer\EavBundle\Entity\Value $entity
For cloning purpose