Bundle/WidgetBundle/Helper/WidgetHelper.php
public function deleteById($widgetId)
    {
        $entityManager = $this->container->get('doctrine.orm.entity_manager');
        $connection = $entityManager->getConnection();
        $statement = $connection->prepare('DELETE FROM vic_widget WHERE id = :id');
        $statement->bindValue('id', $widgetId);
        $statement->execute();
    }
public function deleteById($widgetId)
    {
        $entityManager = $this->container->get('doctrine.orm.entity_manager');
        $connection = $entityManager->getConnection();
        $statement = $connection->prepare('DELETE FROM vic_widget WHERE id = :id');
        $statement->bindValue('id', $widgetId);
        $statement->execute();
    }
public function deleteById ( $ widgetId ) { $ entityManager = $ this -> container -> get ( 'doctrine.orm.entity_manager' ) ; $ connection = $ entityManager -> getConnection ( ) ; $ statement = $ connection -> prepare ( 'DELETE FROM vic_widget WHERE id = :id' ) ; $ statement -> bindValue ( 'id' , $ widgetId ) ; $ statement -> execute ( ) ; }
Delete manually a widget with its id.

@param int $widgetId

@return string
Delete manually a widget with its id .