Пример #1
0
 /**
  * Load data fixtures with the passed EntityManager
  *
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
     $attribute = new Attribute();
     $attribute->setName('class')->setValue('slideHomeNews')->setLabel('Slide Home News')->setType(Attribute::TYPE_BLOCK);
     $manager->persist($attribute);
     $sidebar = new Sidebar\Template\Block();
     $sidebar->setTranslatableLocale('en');
     $sidebar->setActive(true);
     $sidebar->setSlug('seh-home-news');
     $sidebar->setName('[Blocs News] Home SEH');
     $sidebar->setTemplate('block_newsSeh');
     $manager->persist($sidebar);
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Widget Interview');
     $block->setSlug('widget-interview');
     $block->setTitle('Hoteliers join us');
     $block->setTemplate('title_desc_widget');
     $block->setAction('widget_interview');
     $repository->translate($block, 'title', 'fr', 'Hôteliers rejoignez-nous');
     $manager->persist($block);
     $sidebarBlock = new SidebarBlock();
     $sidebarBlock->setBlock($block);
     $sidebarBlock->setSidebar($sidebar);
     $sidebarBlock->setPosition(0);
     $sidebarBlock->setTemplate('title_desc/title_desc_widget');
     $sidebar->addBlock($sidebarBlock);
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Widget News');
     $block->setTitle('News');
     $block->setSlug('widget-news');
     $block->setAction('widget_news');
     $block->setTemplate('title_desc_widget');
     $repository->translate($block, 'title', 'fr', 'Les news');
     $manager->persist($block);
     $sidebarBlock = new SidebarBlock();
     $sidebarBlock->setBlock($block);
     $sidebarBlock->setSidebar($sidebar);
     $sidebarBlock->setPosition(1);
     $sidebarBlock->setTemplate('title_desc/title_desc_widget');
     $sidebar->addBlock($sidebarBlock);
     $manager->flush();
 }
    /**
     * Load data fixtures with the passed EntityManager
     *
     * @param ObjectManager $manager
     */
    public function load(ObjectManager $manager)
    {
        $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
        # Template Sidebar = block_form_contact
        $sidebar = new Sidebar\Template\Block();
        $sidebar->setTranslatableLocale('en');
        $sidebar->setActive(true);
        $sidebar->setSlug('form-contact-sidebar');
        $sidebar->setName('[CONTACT] Sidebar contact form');
        $sidebar->setTemplate('block_sidebar_form');
        $sidebarFormContact = $sidebar;
        $manager->persist($sidebar);
        # Template Page = title_desc_cgv
        $page = new Page\Template\TitleDescBlockSidebar();
        $page->setActive(true);
        $page->setTranslatableLocale('en');
        $page->setName('Seminar quote request');
        $page->setSlug('seminaire');
        $page->setTitle('Seminar quote request');
        $page->setDescription('');
        $page->setTemplate('title_desc_block_sidebar_1');
        $repository->translate($page, 'title', 'fr', 'Formulaire séminaire');
        $manager->persist($page);
        $sidebarPage = new PageSidebar();
        $sidebarPage->setSidebar($sidebar);
        $sidebarPage->setPage($page);
        $sidebarPage->setPosition(0);
        $sidebarPage->setTemplate('title_desc/block_sidebar_form');
        $page->addSidebar($sidebarPage);
        # Template Block = contact_form
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Seminar quote request');
        $block->setSlug('seminar-form');
        $block->setTitle('Seminar quote request');
        $block->setDescription('<p>We will get back to you in less than 24 hours.
When filling out the following form, please be as precise as possible so we may best meet your request.
Our seminar department will provide you with a personalized response in under 24 hours.</p>');
        $block->setAction('seminaires_form');
        $block->setTemplate('title_desc_h2_default');
        $repository->translate($block, 'title', 'fr', 'Demande de devis séminaires');
        $repository->translate($block, 'description', 'fr', '<p>Nous vous répondons sous 24 heures
Afin de répondre au mieux à votre demande, merci de renseigner le formulaire ci-dessous le plus précisément possible.
Notre service séminaires vous répondra sous 24 heures pour vous apporter une réponse personnalisée.</p>');
        $repository->translate($block, 'title', 'de', 'Angebotsanfrage Seminare');
        $repository->translate($block, 'description', 'de', '<p>Wir antworten Ihnen innerhalb von 24 Stunden
Um Ihre Anfrage besser beantworten zu können, füllen Sie das unten stehende Formular bitte so präzise wie möglich aus.
Unser Seminarservice antwortet Ihnen innerhalb von 24 Stunden persönlich.</p>');
        $repository->translate($block, 'title', 'es', 'Solicitar presupuesto seminarios');
        $repository->translate($block, 'description', 'es', '<p>Le responderemos durante las próximas 24 horas
Por favor, rellene el siguiente formulario de la manera más precisa posible, para que podamos atender mejor su solicitud.
Nuestro servicio de seminarios le responderá durante las próximas 24 horas con una solución personalizada.</p>');
        $repository->translate($block, 'title', 'it', 'Richiesta di preventivo per seminari');
        $repository->translate($block, 'description', 'it', '<p>Le risponderemo entro 24 ore
Al fine di rispondere al meglio alla sua richiesta, la preghiamo di compilare il modulo sottostante con la massima precisione.
Il nostro servizio seminari le risponderà entro 24 ore, proponendole una soluzione personalizzata.</p>');
        $repository->translate($block, 'title', 'nl', 'Offerteaanvraag seminars');
        $repository->translate($block, 'description', 'nl', '<p>We zullen uw aanvraag binnen 24 uur beantwoorden.
Om u beter van dienst te kunnen zijn, vragen wij u om het onderstaande formulier zo volledig mogelijk in te vullen.
Onze speciale seminarafdeling zal u binnen 24 uur antwoorden en u een op maat gemaakte oplossing toesturen.</p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(0);
        $pageBlock->setTemplate('title_desc/title_desc_h2_default');
        $page->addBlock($pageBlock);
        # Country for seminaire form
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('France');
        $country->setOrder(1);
        $repository->translate($country, 'name', 'fr', 'France');
        $repository->translate($country, 'name', 'nl', 'Frankrijk');
        $repository->translate($country, 'name', 'it', 'Francia');
        $repository->translate($country, 'name', 'es', 'Francia');
        $repository->translate($country, 'name', 'de', 'Frankreich');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Germany');
        $country->setOrder(2);
        $repository->translate($country, 'name', 'fr', 'Allemagne');
        $repository->translate($country, 'name', 'nl', 'Duitsland');
        $repository->translate($country, 'name', 'it', 'Germania');
        $repository->translate($country, 'name', 'es', 'Alemania');
        $repository->translate($country, 'name', 'de', 'Deutschland');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Austria');
        $country->setOrder(3);
        $repository->translate($country, 'name', 'fr', 'Autriche');
        $repository->translate($country, 'name', 'nl', 'Oostenrijk');
        $repository->translate($country, 'name', 'it', 'Austria');
        $repository->translate($country, 'name', 'es', 'Austria');
        $repository->translate($country, 'name', 'de', 'Österreich');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Belgium');
        $country->setOrder(4);
        $repository->translate($country, 'name', 'fr', 'Belgique');
        $repository->translate($country, 'name', 'nl', 'België');
        $repository->translate($country, 'name', 'it', 'Belgio');
        $repository->translate($country, 'name', 'es', 'Bélgica');
        $repository->translate($country, 'name', 'de', 'Belgien');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Spain');
        $country->setOrder(5);
        $repository->translate($country, 'name', 'fr', 'Espagne');
        $repository->translate($country, 'name', 'nl', 'Spanje');
        $repository->translate($country, 'name', 'it', 'Spagna');
        $repository->translate($country, 'name', 'es', 'España');
        $repository->translate($country, 'name', 'de', 'Spanien');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Italy');
        $country->setOrder(6);
        $repository->translate($country, 'name', 'fr', 'Italie');
        $repository->translate($country, 'name', 'nl', 'Italië');
        $repository->translate($country, 'name', 'it', 'Italia');
        $repository->translate($country, 'name', 'es', 'Italia');
        $repository->translate($country, 'name', 'de', 'Italien');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Luxembourg');
        $country->setOrder(7);
        $repository->translate($country, 'name', 'fr', 'Luxembourg');
        $repository->translate($country, 'name', 'nl', 'Luxemburg');
        $repository->translate($country, 'name', 'it', 'Lussemburgo');
        $repository->translate($country, 'name', 'es', 'Luxemburgo');
        $repository->translate($country, 'name', 'de', 'Luxemburg');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Netherlands');
        $country->setOrder(8);
        $repository->translate($country, 'name', 'fr', 'Pays-Bas');
        $repository->translate($country, 'name', 'nl', 'Nederland');
        $repository->translate($country, 'name', 'it', 'Paesi Bassi');
        $repository->translate($country, 'name', 'es', 'Países Bajos');
        $repository->translate($country, 'name', 'de', 'Niederlande');
        $manager->persist($country);
        $country = new CountrySeminaire();
        $country->setTranslatableLocale('en');
        $country->setName('Switzerland');
        $country->setOrder(9);
        $repository->translate($country, 'name', 'fr', 'Suisse');
        $repository->translate($country, 'name', 'nl', 'Zwitserland');
        $repository->translate($country, 'name', 'it', 'Svizzera');
        $repository->translate($country, 'name', 'es', 'Suiza');
        $repository->translate($country, 'name', 'de', 'Schweiz');
        $manager->persist($country);
        # Benefit type for seminaire form
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Room rental');
        $benefit->setOrder(1);
        $repository->translate($benefit, 'name', 'fr', 'Location de salle');
        $repository->translate($benefit, 'name', 'nl', 'Huur van de zaal');
        $repository->translate($benefit, 'name', 'it', 'Affitto sala');
        $repository->translate($benefit, 'name', 'es', 'Alquiler de sala');
        $repository->translate($benefit, 'name', 'de', 'Anmieten eines Raums');
        $manager->persist($benefit);
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Workshop');
        $benefit->setOrder(2);
        $repository->translate($benefit, 'name', 'fr', 'Journée d\'étude');
        $repository->translate($benefit, 'name', 'nl', 'Studiedag');
        $repository->translate($benefit, 'name', 'it', 'Giornata di studio');
        $repository->translate($benefit, 'name', 'es', 'Jornada de estudio');
        $repository->translate($benefit, 'name', 'de', 'Tagung');
        $manager->persist($benefit);
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Seminar and partial accommodations');
        $benefit->setOrder(3);
        $repository->translate($benefit, 'name', 'fr', 'Séminaire semi-résidentiel');
        $repository->translate($benefit, 'name', 'nl', 'Seminar met overnachting');
        $repository->translate($benefit, 'name', 'it', 'Seminario semiresidenziale');
        $repository->translate($benefit, 'name', 'es', 'Seminario semiresidencial');
        $repository->translate($benefit, 'name', 'de', 'Seminar mit partieller Unterbringung');
        $manager->persist($benefit);
        $benefit = new BenefitTypeSeminaire();
        $benefit->setTranslatableLocale('en');
        $benefit->setName('Seminar and full accommodations');
        $benefit->setOrder(4);
        $repository->translate($benefit, 'name', 'fr', 'Séminaire résidentiel');
        $repository->translate($benefit, 'name', 'nl', 'Seminar met overnachting');
        $repository->translate($benefit, 'name', 'it', 'Seminario residenziale');
        $repository->translate($benefit, 'name', 'es', 'Seminario residencial');
        $repository->translate($benefit, 'name', 'de', 'Seminar mit Unterkunft');
        $manager->persist($benefit);
        # Availbale rooms for seminaire form
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Amphitheatre');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Amphithéâtre');
        $repository->translate($rooms, 'name', 'nl', 'Amfitheater');
        $repository->translate($rooms, 'name', 'it', 'Anfiteatro');
        $repository->translate($rooms, 'name', 'es', 'Anfiteatro');
        $repository->translate($rooms, 'name', 'de', 'Hörsaal');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('U');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'U');
        $repository->translate($rooms, 'name', 'nl', 'U-vorm');
        $repository->translate($rooms, 'name', 'it', 'Ad U');
        $repository->translate($rooms, 'name', 'es', 'En U');
        $repository->translate($rooms, 'name', 'de', 'U-Form');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Theatre');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Théatre');
        $repository->translate($rooms, 'name', 'nl', 'Theater');
        $repository->translate($rooms, 'name', 'it', 'Teatro');
        $repository->translate($rooms, 'name', 'es', 'Teatro');
        $repository->translate($rooms, 'name', 'de', 'Theater');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Class');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Classe');
        $repository->translate($rooms, 'name', 'nl', 'Klassikaal');
        $repository->translate($rooms, 'name', 'it', 'Aula');
        $repository->translate($rooms, 'name', 'es', 'Clase');
        $repository->translate($rooms, 'name', 'de', 'Seminarraum');
        $manager->persist($rooms);
        $rooms = new AvailableRoomsSeminaire();
        $rooms->setTranslatableLocale('en');
        $rooms->setName('Rectangle');
        $rooms->setOrder(4);
        $repository->translate($rooms, 'name', 'fr', 'Rectangle');
        $repository->translate($rooms, 'name', 'nl', 'Rechthoekig');
        $repository->translate($rooms, 'name', 'it', 'Rettangolare');
        $repository->translate($rooms, 'name', 'es', 'Rectángulo');
        $repository->translate($rooms, 'name', 'de', 'Rechteck');
        $manager->persist($rooms);
        // NewVersionFormData
        $sidebar = $sidebarFormContact;
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Nos coordonnées');
        $block->setSlug('nos-coordonnees');
        $block->setTitle('Nos coordonnées');
        $block->setDescription('<h3 class="title3">Nos coordonnées</h3><p><strong>Société Européenne d\'Hôtellerie</strong><br>100 rue Petit <br>75 165 PARIS CEDEX 19 <br>
                FRANCE <br><i class="tel"></i> 01 42 06 41 41 <br><strong>Fax :</strong> 01 42 06 25 90</p><hr><h3 class="title3">Centrale de réservation</h3><p><strong>Pour contacter notre centrale de réservation</strong></p>
            <div class="telCentrale">
                <i class="indigo">Numero Indigo</i> 0 826 10 39 09 <span>0,15 TTC/mn</span>
                <em>Du lundi au vendredi, de 8 h à 19 h, <br>le samedi de 8 h à 18 h</em>
            </div>
            <p>
                <strong>Fax :</strong>  04 71 60 09 38 <br>
                <a href="mailto:reservation@ptitdej-hotel.com"><strong>reservation@ptitdej-hotel.com</strong></a>
            </p>
            <hr>
            <h3 class="title3">Site Internet</h3>
            <p><strong>Pour toute question générale liée au site Internet <br><a href="mailto:contact@ptitdej-hotel.com">contact@ptitdej-hotel.com</a></strong></p>
        ');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'Nos coordonnées');
        $repository->translate($block, 'description', 'fr', '<h3 class="title3">Nos coordonnées</h3><p><strong>Société Européenne d\'Hôtellerie</strong><br>100 rue Petit <br>75 165 PARIS CEDEX 19 <br>
                FRANCE <br><i class="tel"></i> 01 42 06 41 41 <br><strong>Fax :</strong> 01 42 06 25 90</p><hr><h3 class="title3">Centrale de réservation</h3><p><strong>Pour contacter notre centrale de réservation</strong></p>
            <div class="telCentrale">
                <i class="indigo">Numero Indigo</i> 0 826 10 39 09 <span>0,15 TTC/mn</span>
                <em>Du lundi au vendredi, de 8 h à 19 h, <br>le samedi de 8 h à 18 h</em>
            </div>
            <p>
                <strong>Fax :</strong>  04 71 60 09 38 <br>
                <a href="mailto:reservation@ptitdej-hotel.com"><strong>reservation@ptitdej-hotel.com</strong></a>
            </p>
            <hr>
            <h3 class="title3">Site Internet</h3>
            <p><strong>Pour toute question générale liée au site Internet <br><a href="mailto:contact@ptitdej-hotel.com">contact@ptitdej-hotel.com</a></strong></p>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(0);
        $sidebarBlock->setTemplate('title_desc/title_desc_h2');
        $sidebar->addBlock($sidebarBlock);
        # Template Block = title_desc_accent
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Présentation carte accent form contact');
        $block->setSlug('faites-le-plein-de-cadeaux-form');
        $block->setTitle('Faites le plein de cadeaux !');
        $block->setDescription('<p>La carte Accent r&eacute;compense votre fid&eacute;lit&eacute; <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 h&ocirc;tels de nos 4 marques.</p>
<p>D&eacute;couvrez &eacute;galement l&rsquo;application Fid&eacute;lit&eacute;.</p>');
        $block->setTemplate('title_desc_h3');
        $repository->translate($block, 'title', 'fr', 'Faites le plein de cadeaux !');
        $repository->translate($block, 'description', 'fr', '<p>La carte Accent r&eacute;compense votre fid&eacute;lit&eacute; <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 h&ocirc;tels de nos 4 marques.</p>
<p>D&eacute;couvrez &eacute;galement l&rsquo;application Fid&eacute;lit&eacute;.</p>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(0);
        $sidebarBlock->setTemplate('title_desc/title_desc_h3');
        $sidebar->addBlock($sidebarBlock);
        # Template Page = title_desc_cgv
        $page = new Page\Template\TitleDescBlockSidebar();
        $page->setActive(true);
        $page->setTranslatableLocale('en');
        $page->setName('Contact');
        $page->setSlug('contact');
        $page->setTitle('Contact quote request');
        $page->setDescription('');
        $page->setTemplate('title_desc_block_sidebar_1');
        $repository->translate($page, 'title', 'fr', 'Formulaire de contact');
        $manager->persist($page);
        $sidebarPage = new PageSidebar();
        $sidebarPage->setSidebar($sidebar);
        $sidebarPage->setPage($page);
        $sidebarPage->setPosition(0);
        $sidebarPage->setTemplate('title_desc/block_sidebar_form');
        $page->addSidebar($sidebarPage);
        # Template Block = contact_form
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('NOUS CONTACTER PAR E-MAIL');
        $block->setSlug('contact-form');
        $block->setTitle('NOUS CONTACTER PAR E-MAIL');
        $block->setDescription('<p>Pour nous envoyer un e-mail, remplissez ce formulaires.</p>');
        $block->setAction('contact_form');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'NOUS CONTACTER PAR E-MAIL');
        $repository->translate($block, 'description', 'fr', '<p>Pour nous envoyer un e-mail, remplissez ce formulaires.</p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(0);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # Template Block = contact_question
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('VOUS AVEZ UNE QUESTION ?');
        $block->setSlug('contact-question');
        $block->setTitle('VOUS AVEZ UNE QUESTION ?');
        $block->setDescription('<p>Vous recherchez une rubrique en particulier ? Retrouvez nos questions les plus fréquemment posées dans notre rubrique FAQ.</p><a href="#_">Accès à la FAQ</a>');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'VOUS AVEZ UNE QUESTION ?');
        $repository->translate($block, 'description', 'fr', '<p>Vous recherchez une rubrique en particulier ? Retrouvez nos questions les plus fréquemment posées dans notre rubrique FAQ.</p><a href="#_">Accès à la FAQ</a>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(1);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # Template Block = contact_service_commercial
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('SERVICE COMMERCIAL');
        $block->setSlug('contact-service-commercial');
        $block->setTitle('SERVICE COMMERCIAL');
        $block->setDescription('<p>Professionnels, si vous souhaitez contacter le service commercial <br><a href="maito:service.commercial@ptitdej-hotel.com">service.commercial@ptitdej-hotel.com</a></p>');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'SERVICE COMMERCIAL');
        $repository->translate($block, 'description', 'fr', '<p>Professionnels, si vous souhaitez contacter le service commercial <br><a href="maito:service.commercial@ptitdej-hotel.com">service.commercial@ptitdej-hotel.com</a></p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(2);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # Subject for contact form
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Informations sur le site P’titDej-Hotel.com');
        $contactSubject->setOrder(1);
        $repository->translate($contactSubject, 'name', 'fr', 'Informations sur le site P’titDej-Hotel.com');
        $manager->persist($contactSubject);
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Informations sur le groupe SEH-united hoteliers');
        $contactSubject->setOrder(2);
        $repository->translate($contactSubject, 'name', 'fr', 'Informations sur le groupe SEH-united hoteliers');
        $manager->persist($contactSubject);
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Coordonnées de l’hôtel');
        $contactSubject->setOrder(3);
        $repository->translate($contactSubject, 'name', 'fr', 'Coordonnées de l’hôtel');
        $manager->persist($contactSubject);
        $contactSubject = new ContactSubject();
        $contactSubject->setTranslatableLocale('en');
        $contactSubject->setName('Demande concernant la Garantie du Meilleur Tarif');
        $contactSubject->setOrder(4);
        $repository->translate($contactSubject, 'name', 'fr', 'Demande concernant la Garantie du Meilleur Tarif');
        $manager->persist($contactSubject);
        // FormGuideData
        $sidebar = $sidebarFormContact;
        $page = new Page\Template\TitleDescBlockSidebar();
        $page->setActive(true);
        $page->setTranslatableLocale('en');
        $page->setName('Guide request form');
        $page->setSlug('guide');
        $page->setTitle('Guide quote request');
        $page->setDescription('');
        $page->setTemplate('title_desc_block_sidebar_1');
        $repository->translate($page, 'title', 'fr', 'Formulaire guide');
        $manager->persist($page);
        $sidebarPage = new PageSidebar();
        $sidebarPage->setSidebar($sidebar);
        $sidebarPage->setPage($page);
        $sidebarPage->setPosition(0);
        $sidebarPage->setTemplate('title_desc/block_sidebar_form');
        $page->addSidebar($sidebarPage);
        # Template Block = guide_form
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Guide form');
        $block->setSlug('guide-form');
        $block->setTitle('Would you like to receive one of our guides free of charge? Make a request in just a few clicks.');
        $block->setDescription('<p>Our guides contain the important information about each establishment in our network. Facilities, access, services, labels, specifications and contact details. </p><p>We offer two different guides:<br>
 - The multi-brand P’tit Dej-HOTEL, INTER-HOTEL and QUALYS-HOTEL guide<br>
 - the Relais du Silence hotels guide</p><p>Please fill in the fields below to receive the guide of your choice by post.</p>');
        $block->setAction('guide_form');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'Vous souhaitez recevoir gratuitement  l’un de nos guides ? Faites votre demande en quelques clics.');
        $repository->translate($block, 'description', 'fr', '<p>Nos guides rassemblent les informations importantes sur chacun des établissements de notre réseau. Équipements, accès, services, labels, descriptifs ou coordonnée... </p><p>Nous vous proposons deux guides distincts :<br>
 - Le guide multimarque P’tit Dej-HOTEL, INTER-HOTEL et QUALYS-HOTEL.<br>
 - Le guide des hôtels Relais du Silence
</p><p>Remplissez les champs ci-dessous afin de recevoir par courrier le guide de votre choix.</p>');
        $repository->translate($block, 'title', 'nl', 'Wilt u gratis een van onze gidsen ontvangen? Verstuur uw aanvraag met enkele muisklikken.');
        $repository->translate($block, 'description', 'nl', '<p>Onze gidsen bevatten belangrijke informatie over alle hotels binnen ons netwerk. Voorzieningen, toegang, diensten, keurmerken, beschrijvingen en contact- en adresgegevens...</p><p>Wij bieden u twee verschillende gidsen:<br>
 - De gids met de hotels van de merken P’tit Dej-HOTEL, INTER-HOTEL en QUALYS-HOTEL.<br>
 - De gids met de Relais du Silence-hotels
</p><p>Vul de onderstaande velden in om de door u gekozen gids per post te ontvangen.</p>');
        $repository->translate($block, 'title', 'it', 'Desidera ricevere gratuitamente una delle nostre guide? La richieda in un clic.');
        $repository->translate($block, 'description', 'it', '<p>Le nostre guide raccolgono importanti informazioni su ciascuna delle strutture appartenenti alla nostra rete. Allestimenti, accesso, servizi, marchi, descrizione, recapito, ecc.</p><p>Le proponiamo pertanto due diverse guide:<br>
 - la guida multimarca P\'tit Dej-HOTEL, INTER-HOTEL e QUALYS-HOTEL;<br>
 - la guida degli hotel Relais du Silence.
</p><p>Compili i campi seguenti per ricevere per corrispondenza la guida desiderata.</p>');
        $repository->translate($block, 'title', 'es', 'Desea recibir gratuitamente una de nuestras guías? Solicítela en tan sólo unos clics.');
        $repository->translate($block, 'description', 'es', '<p>Nuestras guías recogen los datos más importantes de todos los establecimientos de nuestra red. Equipamientos, acceso, servicio, distintivos, descripciones o información de contacto.</p><p>Les proponemos dos guías diferentes:<br>
 - La guía multimarca P’tit Dej-HOTEL, INTER-HOTEL y QUALYS-HOTEL<br>
 - La guía de hoteles Relais du Silence
</p><p>Complete el formulario siguiente para recibir por correo la guía que elija.</p>');
        $repository->translate($block, 'title', 'de', 'Möchten Sie kostenlos einen unserer Hotelkataloge erhalten? Fordern Sie ihn in wenigen Klicks an.');
        $repository->translate($block, 'description', 'de', '<p>Unsere Kataloge führen alle wichtigen Informationen über jedes Haus in unserem Netz auf. Ausstattung, Anfahrt, Services, Qualitätssiegel, Beschreibungen oder Kontaktdaten...</p><p>Wir bieten Ihnen zwei verschiedene Kataloge:<br>
 - den Multimarkenkatalog P’tit Dej-HOTEL, INTER-HOTEL und QUALYS-HOTEL.<br>
 - den Hotelkatalog Relais du Silence
</p><p>Füllen Sie untenstehende Felder aus, um den Katalog Ihrer Wahl postalisch zu erhalten.</p>');
        $manager->persist($block);
        $pageBlock = new PageBlock();
        $pageBlock->setBlock($block);
        $pageBlock->setPage($page);
        $pageBlock->setPosition(0);
        $pageBlock->setTemplate('title_desc/title_desc_h2');
        $page->addBlock($pageBlock);
        # guide for guide form
        $guide = new GuideForm();
        $guide->setTranslatableLocale('en');
        $guide->setName('The multi-brand P’tit Dej-HOTEL, INTER-HOTEL and QUALYS-HOTEL guide');
        $guide->setOrder(1);
        $repository->translate($guide, 'name', 'fr', 'Le guide multimarque P’tit Dej-HOTEL, INTER-HOTEL et QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'nl', 'De gids met de hotels van de merken P’tit Dej-HOTEL, INTER-HOTEL en QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'it', 'La guida multimarca P\'tit Dej-HOTEL, INTER-HOTEL e QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'es', 'La guía multimarca P’tit Dej-HOTEL, INTER-HOTEL y QUALYS-HOTEL');
        $repository->translate($guide, 'name', 'de', 'Den Multimarkenkatalog P’tit Dej-HOTEL, INTER-HOTEL und QUALYS-HOTEL');
        $manager->persist($guide);
        $guide = new GuideForm();
        $guide->setTranslatableLocale('en');
        $guide->setName('The Relais du Silence hotels guide');
        $guide->setOrder(2);
        $repository->translate($guide, 'name', 'fr', 'Le guide des hôtels Relais du Silence');
        $repository->translate($guide, 'name', 'nl', 'De gids met de Relais du Silence-hotels');
        $repository->translate($guide, 'name', 'it', 'La guida degli hotel Relais du Silence.');
        $repository->translate($guide, 'name', 'es', 'La guía de hoteles Relais du Silence');
        $repository->translate($guide, 'name', 'de', 'Den Hotelkatalog Relais du Silence');
        $manager->persist($guide);
        # entity for guide form
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('An individual');
        $guideEntity->setOrder(1);
        $repository->translate($guideEntity, 'name', 'fr', 'Un particulier');
        $repository->translate($guideEntity, 'name', 'nl', 'Een particulier');
        $repository->translate($guideEntity, 'name', 'it', 'Un privato');
        $repository->translate($guideEntity, 'name', 'es', 'Un particular');
        $repository->translate($guideEntity, 'name', 'de', 'Eine Privatperson');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A company');
        $guideEntity->setOrder(2);
        $repository->translate($guideEntity, 'name', 'fr', 'Une société');
        $repository->translate($guideEntity, 'name', 'nl', 'Een bedrijf');
        $repository->translate($guideEntity, 'name', 'it', 'Un\'azienda');
        $repository->translate($guideEntity, 'name', 'es', 'Una empresa');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Unternehmen');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A tourism professional');
        $guideEntity->setOrder(3);
        $repository->translate($guideEntity, 'name', 'fr', 'Un professionnel du Tourisme');
        $repository->translate($guideEntity, 'name', 'nl', 'Dienstverlener in de toeristische sector');
        $repository->translate($guideEntity, 'name', 'it', 'Un operatore turistico');
        $repository->translate($guideEntity, 'name', 'es', 'Un profesional del turismo');
        $repository->translate($guideEntity, 'name', 'de', 'Im Bereich Tourismus tätig');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A travel agency');
        $guideEntity->setOrder(4);
        $repository->translate($guideEntity, 'name', 'fr', 'Une agence de voyages');
        $repository->translate($guideEntity, 'name', 'nl', 'Een reisbureau');
        $repository->translate($guideEntity, 'name', 'it', 'Un\'agenzia di viaggi');
        $repository->translate($guideEntity, 'name', 'es', 'Una agencia de viajes');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Reisebüro');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A tour operator');
        $guideEntity->setOrder(5);
        $repository->translate($guideEntity, 'name', 'fr', 'Un Tour-Opérateur');
        $repository->translate($guideEntity, 'name', 'nl', 'Een touroperator');
        $repository->translate($guideEntity, 'name', 'it', 'Un tour operator');
        $repository->translate($guideEntity, 'name', 'es', 'Un operador turístico');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Reiseveranstalter');
        $manager->persist($guideEntity);
        $guideEntity = new GuideEntity();
        $guideEntity->setTranslatableLocale('en');
        $guideEntity->setName('A coach company');
        $guideEntity->setOrder(6);
        $repository->translate($guideEntity, 'name', 'fr', 'Un autocariste');
        $repository->translate($guideEntity, 'name', 'nl', 'Een busbedrijf');
        $repository->translate($guideEntity, 'name', 'it', 'Un\'impresa di autobus');
        $repository->translate($guideEntity, 'name', 'es', 'Una empresa de autocares');
        $repository->translate($guideEntity, 'name', 'de', 'Ein Busunternehmen');
        $manager->persist($guideEntity);
        # AreaActivity
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Administration / Ministry');
        $areaActivty->setOrder(1);
        $repository->translate($areaActivty, 'name', 'fr', 'Administration / Ministère');
        $repository->translate($areaActivty, 'name', 'nl', 'Overheid / Ministerie');
        $repository->translate($areaActivty, 'name', 'it', 'Amministrazione/Ministeri');
        $repository->translate($areaActivty, 'name', 'es', 'Administración/Ministerios');
        $repository->translate($areaActivty, 'name', 'de', 'Verwaltung / Ministerium');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Agri-food');
        $areaActivty->setOrder(2);
        $repository->translate($areaActivty, 'name', 'fr', 'Agro-alimentaire');
        $repository->translate($areaActivty, 'name', 'nl', 'Landbouw en voeding');
        $repository->translate($areaActivty, 'name', 'it', 'Agroalimentare');
        $repository->translate($areaActivty, 'name', 'es', 'Sector agroalimentario');
        $repository->translate($areaActivty, 'name', 'de', 'Landwirtschaft');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Insurance / Banking');
        $areaActivty->setOrder(3);
        $repository->translate($areaActivty, 'name', 'fr', 'Assurance / Banque');
        $repository->translate($areaActivty, 'name', 'nl', 'Verzekering / Bankwezen');
        $repository->translate($areaActivty, 'name', 'it', 'Assicurazioni/Settore bancario');
        $repository->translate($areaActivty, 'name', 'es', 'Banca/Seguros');
        $repository->translate($areaActivty, 'name', 'de', 'Versicherung / Bank');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Construction');
        $areaActivty->setOrder(4);
        $repository->translate($areaActivty, 'name', 'fr', 'Bâtiment');
        $repository->translate($areaActivty, 'name', 'nl', 'Constructie');
        $repository->translate($areaActivty, 'name', 'it', 'Edilizia');
        $repository->translate($areaActivty, 'name', 'es', 'Construcción');
        $repository->translate($areaActivty, 'name', 'de', 'Bau');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Commerce / Distribution');
        $areaActivty->setOrder(5);
        $repository->translate($areaActivty, 'name', 'fr', 'Commerce / Distribution');
        $repository->translate($areaActivty, 'name', 'nl', 'Handel / Distributie');
        $repository->translate($areaActivty, 'name', 'it', 'Commercio/Distribuzione');
        $repository->translate($areaActivty, 'name', 'es', 'Comercio/Distribución');
        $repository->translate($areaActivty, 'name', 'de', 'Handel / Vertrieb');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Communications / Publicity');
        $areaActivty->setOrder(6);
        $repository->translate($areaActivty, 'name', 'fr', 'Communication / Publicité');
        $repository->translate($areaActivty, 'name', 'nl', 'Communicatie / Reclame');
        $repository->translate($areaActivty, 'name', 'it', 'Comunicazioni/Pubblicità');
        $repository->translate($areaActivty, 'name', 'es', 'Comunicación/Publicidad');
        $repository->translate($areaActivty, 'name', 'de', 'Kommunikation / Werbung');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Education / Teaching');
        $areaActivty->setOrder(7);
        $repository->translate($areaActivty, 'name', 'fr', 'Education / Enseignement');
        $repository->translate($areaActivty, 'name', 'nl', 'Educatie / Onderwijs');
        $repository->translate($areaActivty, 'name', 'it', 'Istruzione/Insegnamento');
        $repository->translate($areaActivty, 'name', 'es', 'Educación/Enseñanza');
        $repository->translate($areaActivty, 'name', 'de', 'Erziehung / Bildung');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Hotels / Restaurants');
        $areaActivty->setOrder(8);
        $repository->translate($areaActivty, 'name', 'fr', 'Hôtellerie / Restauration');
        $repository->translate($areaActivty, 'name', 'nl', 'Horeca');
        $repository->translate($areaActivty, 'name', 'it', 'Settore alberghiero/Ristorazione');
        $repository->translate($areaActivty, 'name', 'es', 'Hostelería/Restauración');
        $repository->translate($areaActivty, 'name', 'de', 'Hotellerie / Gastronomie');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Industry');
        $areaActivty->setOrder(9);
        $repository->translate($areaActivty, 'name', 'fr', 'Industrie');
        $repository->translate($areaActivty, 'name', 'nl', 'Industrie');
        $repository->translate($areaActivty, 'name', 'it', 'Industria');
        $repository->translate($areaActivty, 'name', 'es', 'Industria');
        $repository->translate($areaActivty, 'name', 'de', 'Industrie');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('IT');
        $areaActivty->setOrder(10);
        $repository->translate($areaActivty, 'name', 'fr', 'Informatique');
        $repository->translate($areaActivty, 'name', 'nl', 'Informatica');
        $repository->translate($areaActivty, 'name', 'it', 'Informatica');
        $repository->translate($areaActivty, 'name', 'es', 'Informática');
        $repository->translate($areaActivty, 'name', 'de', 'Informatik');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Real estate');
        $areaActivty->setOrder(11);
        $repository->translate($areaActivty, 'name', 'fr', 'Immobilier');
        $repository->translate($areaActivty, 'name', 'nl', 'Vastgoed');
        $repository->translate($areaActivty, 'name', 'it', 'Settore immobiliare');
        $repository->translate($areaActivty, 'name', 'es', 'Sector inmobiliario');
        $repository->translate($areaActivty, 'name', 'de', 'Immobilienwesen');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Health');
        $areaActivty->setOrder(12);
        $repository->translate($areaActivty, 'name', 'fr', 'Santé');
        $repository->translate($areaActivty, 'name', 'nl', 'Gezondheidszorg');
        $repository->translate($areaActivty, 'name', 'it', 'Salute');
        $repository->translate($areaActivty, 'name', 'es', 'Sanidad');
        $repository->translate($areaActivty, 'name', 'de', 'Gesundheit');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Transport');
        $areaActivty->setOrder(13);
        $repository->translate($areaActivty, 'name', 'fr', 'Transport');
        $repository->translate($areaActivty, 'name', 'nl', 'Transport');
        $repository->translate($areaActivty, 'name', 'it', 'Trasporti');
        $repository->translate($areaActivty, 'name', 'es', 'Transportes');
        $repository->translate($areaActivty, 'name', 'de', 'Transport');
        $manager->persist($areaActivty);
        $areaActivty = new AreaActivity();
        $areaActivty->setTranslatableLocale('en');
        $areaActivty->setName('Other');
        $areaActivty->setOrder(14);
        $repository->translate($areaActivty, 'name', 'fr', 'Autre');
        $repository->translate($areaActivty, 'name', 'nl', 'Overig');
        $repository->translate($areaActivty, 'name', 'it', 'Altro');
        $repository->translate($areaActivty, 'name', 'es', 'Otro');
        $repository->translate($areaActivty, 'name', 'de', 'Sonstiges');
        $manager->persist($areaActivty);
        # NewsletterGuide
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('SEH');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'SEH');
        $repository->translate($news, 'name', 'nl', 'SEH');
        $repository->translate($news, 'name', 'it', 'SEH');
        $repository->translate($news, 'name', 'es', 'SEH');
        $repository->translate($news, 'name', 'de', 'SEH');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('P’tit Dej-HOTEL');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'nl', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'it', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'es', 'P’tit Dej-HOTEL');
        $repository->translate($news, 'name', 'de', 'P’tit Dej-HOTEL');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('INTER-HOTEL');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'nl', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'it', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'es', 'INTER-HOTEL');
        $repository->translate($news, 'name', 'de', 'INTER-HOTEL');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('QUALYS-HOTEL');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'nl', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'it', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'es', 'QUALYS-HOTEL');
        $repository->translate($news, 'name', 'de', 'QUALYS-HOTEL');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('Relais du Silence');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'Relais du Silence');
        $repository->translate($news, 'name', 'nl', 'Relais du Silence');
        $repository->translate($news, 'name', 'it', 'Relais du Silence');
        $repository->translate($news, 'name', 'es', 'Relais du Silence');
        $repository->translate($news, 'name', 'de', 'Relais du Silence');
        $manager->persist($news);
        $news = new NewsletterGuide();
        $news->setTranslatableLocale('en');
        $news->setName('Accent Card (SEH loyalty programme)');
        $news->setOrder(1);
        $repository->translate($news, 'name', 'fr', 'Carte Accent ( programme de fidélité de la SEH)');
        $repository->translate($news, 'name', 'nl', 'Carte Accent (klantenkaart van SEH)');
        $repository->translate($news, 'name', 'it', 'Carta Accent (programma fedeltà di SEH)');
        $repository->translate($news, 'name', 'es', 'Tarjeta Accent (programa de fidelidad de la SEH)');
        $repository->translate($news, 'name', 'de', 'Carte Accent (Treueprogramm von SEH)');
        $manager->persist($news);
        $manager->flush();
    }
Пример #3
0
 /**
  * Load data fixtures with the passed EntityManager
  *
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
     $sidebar = new Sidebar\Template\Block();
     $sidebar->setTranslatableLocale('en');
     $sidebar->setActive(true);
     $sidebar->setSlug('form-group-sidebar');
     $sidebar->setName('[GROUP] Sidebar Group form');
     $sidebar->setTemplate('block_sidebarFiche');
     $manager->persist($sidebar);
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Votre contact pour une demande de séjour groupe');
     $block->setSlug('group-information');
     $block->setTitle('Contact us');
     $block->setDescription('
         <h3 class="title3">Your contact to request a group stay</h3>
         <p><strong>Group team</strong><br>
         <p>Tel 01.70.23.81.64<br>
         <p><a href="mailto:groupes@seh-hotels.com">groupes@seh-hotels.com</a><br>
     ');
     $block->setTemplate('title_desc_coordonnees');
     $repository->translate($block, 'title', 'fr', 'Nos coordonnées');
     $repository->translate($block, 'description', 'fr', '
         <h3 class="title3">Votre contact pour une demande de séjour groupe</h3>
         <p><strong>Service groupes</strong><br>
         <p>Tel 01.70.23.81.64<br>
         <p><a href="mailto:groupes@seh-hotels.com">groupes@seh-hotels.com</a><br>
     ');
     $manager->persist($block);
     $sidebarBlock = new SidebarBlock();
     $sidebarBlock->setBlock($block);
     $sidebarBlock->setSidebar($sidebar);
     $sidebarBlock->setPosition(0);
     $sidebarBlock->setTemplate('title_desc/title_desc_coordonnees');
     $sidebar->addBlock($sidebarBlock);
     $page = new Page\Template\TitleDescMediaBlockSidebar();
     $page->setActive(true);
     $page->setTranslatableLocale('en');
     $page->setName('Formulaire de Groupe');
     $page->setSlug('group-form');
     $page->setTitle('Formulaire groupe');
     $page->setDescription('');
     $page->setTemplate('title_desc_media_block_sidebar_form');
     $manager->persist($page);
     $sidebarPage = new PageSidebar();
     $sidebarPage->setSidebar($sidebar);
     $sidebarPage->setPage($page);
     $sidebarPage->setPosition(0);
     $sidebarPage->setTemplate('title_desc/block_sidebar_form');
     $page->addSidebar($sidebarPage);
     // Block 1
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('[Formulaire de Groupe] Notre offre pour les groupes');
     $block->setSlug('block-group-form-1');
     $block->setTitle('');
     $block->setDescription('
     <h2 class="title2 lowerCase">Our offer for groups</h2>
     <p>Are you a group of at least fifteen people and do you want to organise a stay in a hotel? Through its four hotel brands and its specialist group bookings team, SEH has a variety of offers for all budgets.</p>
     <h2 class="title2 lowerCase">Friendly and authentic accommodation</h2>
     <p>If you wish to go away for a weekend or a longer time, SEH offers group rates to suit all budgets.</p>
     <h2 class="title2 lowerCase">Quality services adapted to your wishes</h2>
     <p>Our knowledge of all the group hotels and our expertise enable us to give you advice and direct you to the hotel that will best meet your expectations.</p>
     <h2 class="title2 lowerCase">Hoteliers driven by a liking for their region to advise you during your stay</h2>
     <p>And if you need advice about where to go in the region or about activities of any kind, don\'t hesitate to ask! Our hoteliers will be able to guide you and recommend the best options for your group stay..</p>
     <p>For any request for information about a planned group stay, please fill in the questionnaire below:</p>
     ');
     $block->setTemplate('title_desc_h2');
     $repository->translate($block, 'description', 'fr', '
     <h2 class="title2 lowerCase">Notre offre pour les groupes</h2>
     <p>Vous êtes un groupe de 15 personnes minimum et vous souhaitez organiser un séjour dans un hôtel ? La SEH vous propose au travers de ses 4 marques hôtelières et de son service spécialisé dans les demandes de réservation pour les groupes, une offre variée pour tous les budgets.</p>
     <h2 class="title2 lowerCase">Un hébergement convivial et authentique</h2>
     <p>Vous souhaitez partir pour un week-end ou un séjour, la SEH vous propose des tarifs groupes adaptés à tous les budgets.</p>
     <h2 class="title2 lowerCase">Des services de qualité adaptés à vos envies</h2>
     <p>Notre connaissance de tous les hôtels du groupe et notre savoir-faire nous permettent de vous conseiller et vous orienter sur l’établissement correspondant le mieux à vos attentes.</p>
     <h2 class="title2 lowerCase">Des hôteliers animés par le goût de leur région pour vous conseiller lors de votre séjour</h2>
     <p>Et si vous avez besoin de conseils pour visiter la région ou pratiquer des activités de toutes sortes, n’hésitez pas ! Nos hôteliers sauront vous guider et vous recommander le meilleur pour votre séjour en groupe.</p>
     <p>Pour toute demande de renseignement sur un projet de séjour en groupe, merci de bien vouloir remplir le questionnaire ci-dessous :</p>
     ');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(0);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     // End Block 1
     // Block Formulaire de Groupe
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('[Formulaire de Groupe] Demande de devis');
     $block->setSlug('block-group-form-6');
     $block->setTitle('Demande de devis');
     $block->setDescription('');
     $block->setTemplate('title_desc_h2');
     $block->setAction('form_group');
     $repository->translate($block, 'title', 'fr', 'Demande de devis');
     $manager->persist($block);
     $pageBlock = new PageBlock();
     $pageBlock->setBlock($block);
     $pageBlock->setPage($page);
     $pageBlock->setPosition(5);
     $pageBlock->setTemplate('title_desc/title_desc_h2');
     $page->addBlock($pageBlock);
     // End Formulaire de Groupe
     // Listes déroulantes
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('An organisation');
     $repository->translate($groupType, 'name', 'fr', 'Une association');
     $manager->persist($groupType);
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('A sports/leisure activity team');
     $repository->translate($groupType, 'name', 'fr', 'Une équipe de sport / loisirs');
     $manager->persist($groupType);
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('A group of friends');
     $repository->translate($groupType, 'name', 'fr', 'Un groupe d\'amis');
     $manager->persist($groupType);
     $groupType = new GroupType();
     $groupType->setTranslatableLocale('en');
     $groupType->setName('Other');
     $repository->translate($groupType, 'name', 'fr', 'Autre');
     $manager->persist($groupType);
     $groupTitle = new GroupTitle();
     $groupTitle->setTranslatableLocale('en');
     $groupTitle->setName('Ms');
     $repository->translate($groupTitle, 'name', 'fr', 'Madame');
     $manager->persist($groupTitle);
     $groupTitle = new GroupTitle();
     $groupTitle->setTranslatableLocale('en');
     $groupTitle->setName('Mr');
     $repository->translate($groupTitle, 'name', 'fr', 'Monsieur');
     $manager->persist($groupTitle);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Germany');
     $repository->translate($groupCountry, 'name', 'fr', 'Allemagne');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Belgium');
     $repository->translate($groupCountry, 'name', 'fr', 'Belgique');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Spain');
     $repository->translate($groupCountry, 'name', 'fr', 'Espagne');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('France');
     $repository->translate($groupCountry, 'name', 'fr', 'France');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Italy');
     $repository->translate($groupCountry, 'name', 'fr', 'Italie');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Luxembourg');
     $repository->translate($groupCountry, 'name', 'fr', 'Luxembourg');
     $manager->persist($groupCountry);
     $groupCountry = new GroupCountry();
     $groupCountry->setTranslatableLocale('en');
     $groupCountry->setName('Netherlands');
     $repository->translate($groupCountry, 'name', 'fr', 'Pays-bas');
     $manager->persist($groupCountry);
     $groupTypeOfRoom = new GroupTypeOfRoom();
     $groupTypeOfRoom->setTranslatableLocale('en');
     $groupTypeOfRoom->setName('Single');
     $repository->translate($groupTypeOfRoom, 'name', 'fr', '1 personne');
     $manager->persist($groupTypeOfRoom);
     $groupTypeOfRoom = new GroupTypeOfRoom();
     $groupTypeOfRoom->setTranslatableLocale('en');
     $groupTypeOfRoom->setName('Double');
     $repository->translate($groupTypeOfRoom, 'name', 'fr', '2 personnes 1 lit');
     $manager->persist($groupTypeOfRoom);
     $groupTypeOfRoom = new GroupTypeOfRoom();
     $groupTypeOfRoom->setTranslatableLocale('en');
     $groupTypeOfRoom->setName('Twin');
     $repository->translate($groupTypeOfRoom, 'name', 'fr', '2 personnes 2 lits');
     $manager->persist($groupTypeOfRoom);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('Economy, from €40/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', 'Economique, à partir de 40€/nuit');
     $manager->persist($groupHotelCategory);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('2 and 3 stars, from €65/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', '2 et 3 étoiles, à partir de 65€/nuit');
     $manager->persist($groupHotelCategory);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('Superior, from €80/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', 'Supérieur, à partir de 80€/nuit');
     $manager->persist($groupHotelCategory);
     $groupHotelCategory = new GroupHotelCategory();
     $groupHotelCategory->setTranslatableLocale('en');
     $groupHotelCategory->setName('Charming hotels, from €100/night');
     $repository->translate($groupHotelCategory, 'name', 'fr', 'Hôtels de charme, à partir de 100€/nuit');
     $manager->persist($groupHotelCategory);
     // Fin Listes déroulantes
     $manager->flush();
 }
Пример #4
0
 /**
  * Load data fixtures with the passed EntityManager
  *
  * @param Doctrine\Common\Persistence\ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
     # Template Sidebar = block_footer
     $sidebar = new Sidebar\Template\Block();
     $sidebar->setTranslatableLocale('en');
     $sidebar->setActive(true);
     $sidebar->setSlug('footer-main-footer');
     $sidebar->setName('[Footer] Footer général');
     $sidebar->setTemplate('block_footer');
     $manager->persist($sidebar);
     # Template Block = title_desc_default_description
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Espace fidélité');
     $block->setSlug('global-footer-loyalty-space');
     $block->setTitle('Espace fidélité');
     $block->setDescription('
     <a href="#_" class="notReady">
         <img src="http://www.seh-hotels.c2is.fr/images/common/pict/accent-card.png" width="126" alt="Carte accent">
         <div>
             <h3 class="title3">Loyalty space</h3>
             <span>The Accent card reward your loyalty in the 550 hotels of our 4 brands. <br>Discover also the Loyalty application.</span>
         </div>
     </a>
     ');
     $block->setTemplate('title_desc_h2');
     $repository->translate($block, 'title', 'fr', 'Espace fidélité');
     $repository->translate($block, 'description', 'fr', '
     <a href="#_" class="notReady">
         <img src="http://www.seh-hotels.c2is.fr/images/common/pict/accent-card.png" width="126" alt="Carte accent">
         <div>
             <h3 class="title3">Espace fidélité</h3>
             <span>La carte Accent récompense votre fidélité dans les 550 hôtels de nos 4 marques. <br>Découvrez également l’application Fidélité.</span>
         </div>
     </a>
     ');
     $manager->persist($block);
     $sidebarBlock = new SidebarBlock();
     $sidebarBlock->setBlock($block);
     $sidebarBlock->setSidebar($sidebar);
     $sidebarBlock->setPosition(1);
     $sidebarBlock->setTemplate('title_desc/title_desc_h2');
     $sidebar->addBlock($sidebarBlock);
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Change or cancel a booking');
     $block->setSlug('global-footer-change-or-cancel-booking');
     $block->setTitle('Change or cancel a booking');
     $block->setDescription('
     <a href="#_" class="notReady">
         <h3 class="title3">Change or cancel a booking</h3>
         <span>Quam ob rem vita quidem talis fuitut nihil posset accedere, moriendi. </span>
     </a>
     ');
     $block->setTemplate('title_desc_h2');
     $repository->translate($block, 'title', 'fr', 'Modifier ou annuler une réservation');
     $repository->translate($block, 'description', 'fr', '
     <a href="#_" class="notReady">
         <h3 class="title3">Modifier ou annuler une réservation</h3>
         <span>Quam ob rem vita quidem talis fuitut nihil posset accedere, moriendi. </span>
     </a>
     ');
     $manager->persist($block);
     $sidebarBlock = new SidebarBlock();
     $sidebarBlock->setBlock($block);
     $sidebarBlock->setSidebar($sidebar);
     $sidebarBlock->setPosition(2);
     $sidebarBlock->setTemplate('title_desc/title_desc_h2');
     $sidebar->addBlock($sidebarBlock);
     $block = new TitleDescMedia();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('Form guide');
     $block->setSlug('global-footer-guide-form');
     $block->setTitle('Demande de guide');
     $block->setDescription('<p>Demandez notre guide grand public</p>');
     $block->setTemplate('title_desc_media_guideFooter');
     $repository->translate($block, 'title', 'fr', 'Demande de guide');
     $repository->translate($block, 'description', 'fr', '<p>Demandez notre guide grand public</p>');
     $manager->persist($block);
     $block = new TitleDesc();
     $block->setTranslatableLocale('en');
     $block->setActive(true);
     $block->setName('SEO footer');
     $block->setSlug('seo-footer');
     $block->setTitle('');
     $block->setDescription('<p>Baseline SEO Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum, asperiores, quia odio aliquam blanditiis nam quisquam obcaecati repellendus neque officia repellat laborum perferendis pariatur vero omnis assumenda maxime velit! Reiciendis, saepe repellendus similique consequuntur provident nostrum excepturi harum eius accusamus assumenda magnam minus non reprehenderit vitae earum iste eveniet officiis dolores placeat sapiente at adipisci aliquam iusto blanditiis dolor. Ratione, modi, corporis reprehenderit non provident nihil blanditiis. Alias, dolor, est, ipsa iusto reprehenderit natus eaque accusantium aut reiciendis atque quibusdam dignissimos quam odio libero tenetur ex architecto rerum veniam tempora officiis hic impedit neque vel consequuntur laboriosam enim eius vero.</p>');
     $block->setTemplate('title_desc_seoFooter');
     $repository->translate($block, 'description', 'fr', '<p>Baseline SEO Lorem ipsum dolor sit amet, consectetur adipisicing elit. Earum, asperiores, quia odio aliquam blanditiis nam quisquam obcaecati repellendus neque officia repellat laborum perferendis pariatur vero omnis assumenda maxime velit! Reiciendis, saepe repellendus similique consequuntur provident nostrum excepturi harum eius accusamus assumenda magnam minus non reprehenderit vitae earum iste eveniet officiis dolores placeat sapiente at adipisci aliquam iusto blanditiis dolor. Ratione, modi, corporis reprehenderit non provident nihil blanditiis. Alias, dolor, est, ipsa iusto reprehenderit natus eaque accusantium aut reiciendis atque quibusdam dignissimos quam odio libero tenetur ex architecto rerum veniam tempora officiis hic impedit neque vel consequuntur laboriosam enim eius vero.</p>');
     $manager->persist($block);
     $manager->flush();
 }
Пример #5
0
    /**
     * Load data fixtures with the passed EntityManager
     *
     * @param ObjectManager $manager
     */
    public function load(ObjectManager $manager)
    {
        $repository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('accentCard')->setLabel('Carte Accent')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('advantageAccount')->setLabel('Avantage Compte Client')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('blocMainContent blocServiceCommercial')->setLabel('Service Commercial')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('ourContactInfo')->setLabel('Contact Info')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('blocMainContent blocContactForm')->setLabel('Bloc Formulaire Contact')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('blocMainContent')->setLabel('Bloc Contenu Editorial')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('reinsuranceCreditCards')->setLabel('Bloc moyens de paiement')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('reinsuranceCreditCards')->setLabel('Réassurance - Moyens de paiement')->setType(Attribute::TYPE_BLOCK);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('footerAdvantages clearer')->setLabel('Footer fidélité')->setType(Attribute::TYPE_SIDEBAR);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('footerReinsurance clearer')->setLabel('Footer réassurance')->setType(Attribute::TYPE_SIDEBAR);
        $manager->persist($attribute);
        $attribute = new Attribute();
        $attribute->setName('class')->setValue('accentCard')->setLabel('Carte Accent')->setType(Attribute::TYPE_SIDEBAR);
        $manager->persist($attribute);
        # Template Sidebar = block_accent_footer
        $sidebar = new Sidebar\Template\Block();
        $sidebar->setTranslatableLocale('en');
        $sidebar->setActive(true);
        $sidebar->setSlug('booking-accent-footer');
        $sidebar->setName('[COULOIR] Footer accent');
        $sidebar->setTemplate('block_accent_footer');
        $manager->persist($sidebar);
        # Template Block = title_desc_h2
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Faites le plein de cadeaux !');
        $block->setSlug('faites-le-plein-de-cadeaux');
        $block->setTitle('Présentation carte accent');
        $block->setDescription('<p>La carte Accent r&eacute;compense votre fid&eacute;lit&eacute; dans les 550 h&ocirc;tels de nos 4 marques.</p>
<p>D&eacute;couvrez &eacute;galement l&rsquo;application Fid&eacute;lit&eacute;.</p>');
        $block->setTemplate('title_desc_h2');
        $repository->translate($block, 'title', 'fr', 'Faites le plein de cadeaux !');
        $repository->translate($block, 'description', 'fr', '<p>La carte Accent r&eacute;compense votre fid&eacute;lit&eacute; dans les 550 h&ocirc;tels de nos 4 marques.</p>
<p>D&eacute;couvrez &eacute;galement l&rsquo;application Fid&eacute;lit&eacute;.</p>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(0);
        $sidebarBlock->setTemplate('title_desc/title_desc_h2');
        $sidebar->addBlock($sidebarBlock);
        # Template Block = title_desc_default_h3
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Mes avantages fidélité');
        $block->setSlug('mes-avantages-fidelite');
        $block->setTitle('Avantages fidélité');
        $block->setDescription('<ul class="bulletList">
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
</ul>');
        $block->setTemplate('title_desc_defaultH3');
        $repository->translate($block, 'title', 'fr', 'Mes avantages fidélité');
        $repository->translate($block, 'description', 'fr', '<ul class="bulletList">
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
</ul>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(1);
        $sidebarBlock->setTemplate('title_desc/title_desc_defaultH3');
        $sidebar->addBlock($sidebarBlock);
        # Template Sidebar = block_loyalty_footer
        $sidebar = new Sidebar\Template\Block();
        $sidebar->setTranslatableLocale('en');
        $sidebar->setActive(true);
        $sidebar->setSlug('booking-loyalty-footer');
        $sidebar->setName('[COULOIR] Footer fidélité');
        $sidebar->setTemplate('block_loyaltyFooter');
        $manager->persist($sidebar);
        # Template Block = title_desc_account_advantage
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Mes avantages avec mon compte client SEH');
        $block->setSlug('avantages-compte-client');
        $block->setTitle('Avantages compte client');
        $block->setDescription('<ul class="bulletList">
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
</ul>');
        $block->setTemplate('title_desc_accountAdvantage');
        $repository->translate($block, 'title', 'fr', 'Mes avantages avec mon compte client SEH');
        $repository->translate($block, 'description', 'fr', '<ul class="bulletList">
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
	<li>Vecellinum debeat amicitia patriam num.</li>
</ul>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(1);
        $sidebarBlock->setTemplate('title_desc/title_desc_accountAdvantage');
        $sidebar->addBlock($sidebarBlock);
        # Template Sidebar = block_footer
        $sidebar = new Sidebar\Template\Block();
        $sidebar->setTranslatableLocale('en');
        $sidebar->setActive(true);
        $sidebar->setSlug('booking-footer');
        $sidebar->setName('[COULOIR] Footer');
        $sidebar->setTemplate('block_footer');
        $manager->persist($sidebar);
        $sidebar2 = new Sidebar\Template\Block();
        $sidebar2->setTranslatableLocale('en');
        $sidebar2->setActive(true);
        $sidebar2->setSlug('hotel-sidebar');
        $sidebar2->setName('[Fiche] Sidebar');
        $sidebar2->setTemplate('block_sidebarFiche');
        $manager->persist($sidebar2);
        # Template Block = title_desc_media_reinsurance_seh
        $block = new TitleDescMedia();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Pourquoi réserver sur');
        $block->setSlug('reinsurance-seh');
        $block->setTitle('Réassurance SEH');
        $block->setDescription('<ul class="bulletList">
    <li>Disponibilité des chambres en temps réel et offres de dernières minutes.</li>
    <li>Meilleur prix garanti.</li>
    <li>Toutes nos marques sont affichées.</li>
</ul>');
        $block->setTemplate('title_desc_media_reinsuranceSeh');
        $repository->translate($block, 'title', 'fr', 'Pourquoi réserver sur');
        $repository->translate($block, 'description', 'fr', '<ul class="bulletList">
    <li>Disponibilité des chambres en temps réel et offres de dernières minutes.</li>
    <li>Meilleur prix garanti.</li>
    <li>Toutes nos marques sont affichées.</li>
</ul>');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(0);
        $sidebarBlock->setTemplate('title_desc_media/title_desc_media_reinsuranceSeh');
        $sidebar->addBlock($sidebarBlock);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar2);
        $sidebarBlock->setPosition(0);
        $sidebarBlock->setTemplate('title_desc_media/title_desc_media_reinsuranceSeh');
        $sidebar2->addBlock($sidebarBlock);
        # Template Block = title_desc_media_reinsurance_thawte
        $block = new TitleDescMedia();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Réservez en toute tranquilité');
        $block->setSlug('reinsurance-thawte');
        $block->setTitle('Réassurance Thawte');
        $block->setDescription('Réservez <br>en toute <br>tranquilité');
        $block->setTemplate('title_desc_media_reinsuranceThawte');
        $repository->translate($block, 'title', 'fr', 'Réservez en toute tranquilité');
        $repository->translate($block, 'description', 'fr', 'Réservez <br>en toute <br>tranquilité');
        $manager->persist($block);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar2);
        $sidebarBlock->setPosition(2);
        $sidebarBlock->setTemplate('title_desc_media/title_desc_media_reinsuranceThawteHotel');
        $sidebar2->addBlock($sidebarBlock);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($block);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(1);
        $sidebarBlock->setTemplate('title_desc_media/title_desc_media_reinsuranceThawte');
        $sidebar->addBlock($sidebarBlock);
        $block = new TitleDescMedia();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('Les petits déjeuner');
        $block->setSlug('hotel-breakfast');
        $block->setTitle('Les petits déjeuner');
        $block->setDescription('<p>Chez P’tit Dej-HOTEL vitaminez votre journée avec un savoureux petit déjeuner à <strong>volonté et à tout p’tit prix !</strong></p>');
        $block->setTemplate('title_desc_media_breakfasts');
        $repository->translate($block, 'title', 'fr', 'Les petits déjeuner');
        $repository->translate($block, 'description', 'fr', '<p>Chez P’tit Dej-HOTEL vitaminez votre journée avec un savoureux petit déjeuner à <strong>volonté et à tout p’tit prix !</strong></p>');
        $manager->persist($block);
        # Template Block = title_desc_widget
        $widget = new TitleDesc();
        $widget->setName('booking_payment');
        $widget->setTitle('[COULOIR] Moyen de paiement');
        $widget->setActive(true);
        $widget->setSlug('payment-method');
        $widget->setTemplate('title_desc_widget');
        $widget->setAction('widget_booking_payment');
        $manager->persist($widget);
        $sidebarBlock = new SidebarBlock();
        $sidebarBlock->setBlock($widget);
        $sidebarBlock->setSidebar($sidebar);
        $sidebarBlock->setPosition(2);
        $sidebarBlock->setTemplate('title_desc/title_desc_widget');
        $sidebar->addBlock($sidebarBlock);
        # Template Page = title_desc_cgv
        $page = new Page\Template\TitleDesc();
        $page->setActive(true);
        $page->setTranslatableLocale('en');
        $page->setName('Condition générales de vente');
        $page->setSlug('condition-generales-de-vente');
        $page->setTitle('Condition générales de vente');
        $page->setDescription('CGV CGV CGV');
        $repository->translate($page, 'title', 'fr', 'Condition générales de vente');
        $repository->translate($page, 'description', 'fr', 'CGV CGV CGV');
        $page->setTemplate('title_desc_cgv');
        $manager->persist($page);
        # Template Widget = title_desc_widget
        $widget = new TitleDesc();
        $widget->setName('viewed_hotel');
        $widget->setTitle('[Fiche] Hôtels consultés');
        $widget->setActive(true);
        $widget->setSlug('viewed_hotel');
        $widget->setTemplate('title_desc_widget');
        $widget->setAction('widget_viewed_hotel');
        $manager->persist($widget);
        $manager->flush();
        $translationRepository = $manager->getRepository('Gedmo\\Translatable\\Entity\\Translation');
        $blockRepository = $manager->getRepository('Bigfoot\\Bundle\\ContentBundle\\Entity\\Block\\Template\\TitleDesc');
        $block = $blockRepository->findOneBySlug('faites-le-plein-de-cadeaux');
        $block->setDescription('<p>La carte Accent récompense votre fidélité <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 hôtels de nos 4 marques.</p><p>Découvrez également l’application Fidélité.</p>');
        $translationRepository->translate($block, 'description', 'fr', '<p>La carte Accent récompense votre fidélité <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 hôtels de nos 4 marques.</p><p>Découvrez également l’application Fidélité.</p>');
        $manager->persist($block);
        # Template Block = title_desc_home_accent
        $block = new TitleDesc();
        $block->setTranslatableLocale('en');
        $block->setActive(true);
        $block->setName('La carte accent');
        $block->setSlug('home-accent-content');
        $block->setTitle('[HOME] Carte Accent');
        $block->setDescription('<h3 class="title3">Faites le plein de cadeaux !</h3><p>La carte Accent récompense votre fidélité <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 hôtels de nos 4 marques.</p><p>Découvrez également l’application Fidélité.</p>');
        $block->setTemplate('title_desc_homeAccent');
        $translationRepository->translate($block, 'title', 'fr', 'La carte accent');
        $translationRepository->translate($block, 'description', 'fr', '<h3 class="title3">Faites le plein de cadeaux !</h3><p>La carte Accent récompense votre fidélité <img src="/images/common/pict/accent-card.png" alt="accent"> dans les 550 hôtels de nos 4 marques.</p><p>Découvrez également l’application Fidélité.</p>');
        $manager->persist($block);
        $manager->flush();
    }