public function afterSave(Event $event, Menu $menu, ArrayObject $options = null)
    {
        if ($menu->isNew()) {
            $block = TableRegistry::get('Block.Blocks')->newEntity([
                'title' => $menu->title . ' ' . __d('menu', '[menu: {0}]', $menu->id),
                'handler' => 'Menu\Widget\MenuWidget',
                'description' => (!empty($menu->description) ? $menu->description : __d('menu', 'Associated block for "{0}" menu.', $menu->title)),
                'visibility' => 'except',
                'pages' => null,
                'locale' => null,
                'status' => 0,
                'settings' => ['menu_id' => $menu->id]
            ], ['validate' => false]);
            TableRegistry::get('Block.Blocks')->save($block);
        }
        $this->clearCache();
    }