private function updateSections()
    {
        $sections = $this->repo->findAll();
        foreach ($sections as $section) {
            PageListener::setSectionHasChildren($this->em, $section);
        }
        $this->em->flush();

        return $this;
    }
private function updateSections()
    {
        $sections = $this->repo->findAll();
        foreach ($sections as $section) {
            PageListener::setSectionHasChildren($this->em, $section);
        }
        $this->em->flush();

        return $this;
    }
private function updateSections ( ) { $ sections = $ this -> repo -> findAll ( ) ; foreach ( $ sections as $ section ) { PageListener :: setSectionHasChildren ( $ this -> em , $ section ) ; } $ this -> em -> flush ( ) ; return $ this ; }
Updates `has_section` data from existing section


@return \BackBee\Console\Command\UpgradeToPageSectionCommand
Updates has_section data from existing section