Elcodi\Admin\CoreBundle\Controller\Abstracts\AbstractAdminController::disableEntity PHP Метод

disableEntity() защищенный Метод

Disables the given entity
protected disableEntity ( Elcodi\Component\Core\Entity\Interfaces\EnabledInterface $entity )
$entity Elcodi\Component\Core\Entity\Interfaces\EnabledInterface The entity to disable
    protected function disableEntity(EnabledInterface $entity)
    {
        $entity->setEnabled(false);
        $entityManager = $this->getManagerForClass($entity);
        $entityManager->flush($entity);
    }