src/CoreBundle/EventListener/DcGeneral/Table/MetaModel/TableUpdatingListener.php
public function handleDelete(PreDeleteModelEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        try {
            $this->tableManipulator->checkTableExists($tableName = $event->getModel()->getProperty('tableName'));
        } catch (\Exception $exception) {
            // Exit if table does not exist.
            return;
        }

        $this->tableManipulator->deleteTable($tableName);
    }
public function handleDelete(PreDeleteModelEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        try {
            $this->tableManipulator->checkTableExists($tableName = $event->getModel()->getProperty('tableName'));
        } catch (\Exception $exception) {
            // Exit if table does not exist.
            return;
        }

        $this->tableManipulator->deleteTable($tableName);
    }
Handle the deletion of a MetaModel and all attached data.

@param PreDeleteModelEvent $event The event.

@return void