public function deleteSection(Section $section)
 {
     $page_repo = $this->getEntityManager()->getRepository('BackBee\\NestedNode\\Page');
     $pages = $page_repo->createQueryBuilder('p')->andParentIs($section->getPage())->andIsNotSection()->getQuery()->execute();
     foreach ($pages as $page) {
         $page_repo->deletePage($page);
     }
     $sections = $page_repo->createQueryBuilder('p')->andParentIs($section->getPage())->andIsSection()->getQuery()->execute();
     foreach ($sections as $section) {
         $this->deleteSection($section->getSection());
     }
     $this->getEntityManager()->remove($section);
 }