public function clear($entity)
    {
        /**
         * @var ObjectManager $objectManager
         */
        $objectManager = $this
            ->get('elcodi.provider.manager')
            ->getManagerByEntityNamespace(get_class($entity));

        $objectManager->clear($entity);

        return $this;
    }
public function clear($entity)
    {
        /**
         * @var ObjectManager $objectManager
         */
        $objectManager = $this
            ->get('elcodi.provider.manager')
            ->getManagerByEntityNamespace(get_class($entity));

        $objectManager->clear($entity);

        return $this;
    }
public function clear ( $ entity ) { /**
         * @var ObjectManager $objectManager
         */ $ objectManager = $ this -> get ( 'elcodi.provider.manager' ) -> getManagerByEntityNamespace ( get_class ( $ entity ) ) ; $ objectManager -> clear ( $ entity ) ; return $ this ; }
Remove an entity from ORM map.

@param mixed $entity Entity

@return $this Self object
Remove an entity from ORM map .