public function initialize($name = "Unknown", $icon = null){
        if($this->em->getRepository(PageType::class)->findOneByTitle($name) === null){
            $type = new PageType();
            $type->setTitle($name);
            $type->setIcon($icon);
            $this->em->persist($type);
            $this->em->flush();
        }
    }