diff --git a/src/Resources/config/serializer/Entity.Media.xml b/src/Resources/config/serializer/Entity.Media.xml
deleted file mode 100644
index be21b5d14..000000000
--- a/src/Resources/config/serializer/Entity.Media.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- Autocomplete
-
-
- Autocomplete
-
-
- Autocomplete
-
-
-
- bitbag_sylius_cms_plugin_shop_media_inline
-
- <_locale>expr(object.getTranslation().getLocale())
- expr(object.getCode())
-
-
-
-
- Autocomplete
-
-
-
diff --git a/src/Resources/config/serializer/Entity.Media.yml b/src/Resources/config/serializer/Entity.Media.yml
new file mode 100644
index 000000000..8cf3defd2
--- /dev/null
+++ b/src/Resources/config/serializer/Entity.Media.yml
@@ -0,0 +1,29 @@
+BitBag\SyliusCmsPlugin\Entity\Media:
+ exclusion_policy: ALL
+ xml_root_name: media
+ properties:
+ id:
+ expose: true
+ type: integer
+ xml_attribute: true
+ groups: [Autocomplete]
+ code:
+ expose: true
+ type: string
+ groups: [Autocomplete]
+ path:
+ expose: true
+ type: string
+ groups: [Autocomplete]
+ relations:
+ -
+ rel: self
+ href:
+ route: bitbag_sylius_cms_plugin_shop_media_inline
+ parameters:
+ _locale: expr(object.getTranslation().getLocale())
+ code: expr(object.getCode())
+ virtual_properties:
+ getName:
+ serialized_name: name
+ groups: [Autocomplete]
diff --git a/src/Resources/config/serializer/Entity.Section.xml b/src/Resources/config/serializer/Entity.Section.xml
deleted file mode 100644
index 2febf74cc..000000000
--- a/src/Resources/config/serializer/Entity.Section.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
- Autocomplete
-
-
- Autocomplete
-
-
- Autocomplete
-
-
-
diff --git a/src/Resources/config/serializer/Entity.Section.yml b/src/Resources/config/serializer/Entity.Section.yml
new file mode 100644
index 000000000..96a51ea3d
--- /dev/null
+++ b/src/Resources/config/serializer/Entity.Section.yml
@@ -0,0 +1,17 @@
+BitBag\SyliusCmsPlugin\Entity\Section:
+ exclusion_policy: ALL
+ xml_root_name: section
+ properties:
+ id:
+ expose: true
+ type: integer
+ xml_attribute: true
+ groups: [Autocomplete]
+ code:
+ expose: true
+ type: string
+ groups: [Autocomplete]
+ virtual_properties:
+ getName:
+ serialized_name: name
+ groups: [Autocomplete]
diff --git a/src/Resources/config/validation/Block.xml b/src/Resources/config/validation/Block.xml
new file mode 100644
index 000000000..26e369571
--- /dev/null
+++ b/src/Resources/config/validation/Block.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/BlockTranslation.xml b/src/Resources/config/validation/BlockTranslation.xml
new file mode 100644
index 000000000..bd3e547f1
--- /dev/null
+++ b/src/Resources/config/validation/BlockTranslation.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/FrequentlyAskedQuestion.xml b/src/Resources/config/validation/FrequentlyAskedQuestion.xml
new file mode 100644
index 000000000..ead67ad2c
--- /dev/null
+++ b/src/Resources/config/validation/FrequentlyAskedQuestion.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/FrequentlyAskedQuestionTranslation.xml b/src/Resources/config/validation/FrequentlyAskedQuestionTranslation.xml
new file mode 100644
index 000000000..8bc83fdcf
--- /dev/null
+++ b/src/Resources/config/validation/FrequentlyAskedQuestionTranslation.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/Media.xml b/src/Resources/config/validation/Media.xml
new file mode 100644
index 000000000..e7c2f4e1e
--- /dev/null
+++ b/src/Resources/config/validation/Media.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/MediaTranslation.xml b/src/Resources/config/validation/MediaTranslation.xml
new file mode 100644
index 000000000..1e3495124
--- /dev/null
+++ b/src/Resources/config/validation/MediaTranslation.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/Page.xml b/src/Resources/config/validation/Page.xml
new file mode 100644
index 000000000..5cf0e3316
--- /dev/null
+++ b/src/Resources/config/validation/Page.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/PageTranslation.xml b/src/Resources/config/validation/PageTranslation.xml
new file mode 100644
index 000000000..cd4f86842
--- /dev/null
+++ b/src/Resources/config/validation/PageTranslation.xml
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/Section.xml b/src/Resources/config/validation/Section.xml
new file mode 100644
index 000000000..a9034efda
--- /dev/null
+++ b/src/Resources/config/validation/Section.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Resources/config/validation/SectionTranslation.xml b/src/Resources/config/validation/SectionTranslation.xml
new file mode 100644
index 000000000..4c1bd58cc
--- /dev/null
+++ b/src/Resources/config/validation/SectionTranslation.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/Behat/Resources/services/contexts/ui.xml b/tests/Behat/Resources/services/contexts/ui.xml
index 4043a6bbb..ce646296a 100644
--- a/tests/Behat/Resources/services/contexts/ui.xml
+++ b/tests/Behat/Resources/services/contexts/ui.xml
@@ -4,30 +4,74 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/Behat/Resources/services/pages/admin/block.xml b/tests/Behat/Resources/services/pages/admin/block.xml
index 91db56119..6e3d7720f 100644
--- a/tests/Behat/Resources/services/pages/admin/block.xml
+++ b/tests/Behat/Resources/services/pages/admin/block.xml
@@ -5,15 +5,15 @@
- 'bitbag_sylius_cms_plugin_admin_block_index'
+ bitbag_sylius_cms_plugin_admin_block_index
- 'bitbag_sylius_cms_plugin_admin_block_create'
+ bitbag_sylius_cms_plugin_admin_block_create
- 'bitbag_sylius_cms_plugin_admin_block_update'
+ bitbag_sylius_cms_plugin_admin_block_update
diff --git a/tests/Behat/Resources/services/pages/admin/frequently_asked_question.xml b/tests/Behat/Resources/services/pages/admin/frequently_asked_question.xml
index e3187a5a2..d12b00f9e 100644
--- a/tests/Behat/Resources/services/pages/admin/frequently_asked_question.xml
+++ b/tests/Behat/Resources/services/pages/admin/frequently_asked_question.xml
@@ -5,15 +5,15 @@
- 'bitbag_sylius_cms_plugin_admin_frequently_asked_question_index'
+ bitbag_sylius_cms_plugin_admin_frequently_asked_question_index
- 'bitbag_sylius_cms_plugin_admin_frequently_asked_question_create'
+ bitbag_sylius_cms_plugin_admin_frequently_asked_question_create
- 'bitbag_sylius_cms_plugin_admin_frequently_asked_question_update'
+ bitbag_sylius_cms_plugin_admin_frequently_asked_question_update
diff --git a/tests/Behat/Resources/services/pages/admin/media.xml b/tests/Behat/Resources/services/pages/admin/media.xml
index 859d458d4..1ecf98438 100644
--- a/tests/Behat/Resources/services/pages/admin/media.xml
+++ b/tests/Behat/Resources/services/pages/admin/media.xml
@@ -5,15 +5,15 @@
- 'bitbag_sylius_cms_plugin_admin_media_index'
+ bitbag_sylius_cms_plugin_admin_media_index
- 'bitbag_sylius_cms_plugin_admin_media_create'
+ bitbag_sylius_cms_plugin_admin_media_create
- 'bitbag_sylius_cms_plugin_admin_media_update'
+ bitbag_sylius_cms_plugin_admin_media_update
diff --git a/tests/Behat/Resources/services/pages/admin/page.xml b/tests/Behat/Resources/services/pages/admin/page.xml
index 391d2e2b4..39d7c6024 100644
--- a/tests/Behat/Resources/services/pages/admin/page.xml
+++ b/tests/Behat/Resources/services/pages/admin/page.xml
@@ -5,15 +5,15 @@
- 'bitbag_sylius_cms_plugin_admin_page_index'
+ bitbag_sylius_cms_plugin_admin_page_index
- 'bitbag_sylius_cms_plugin_admin_page_create'
+ bitbag_sylius_cms_plugin_admin_page_create
- 'bitbag_sylius_cms_plugin_admin_page_update'
+ bitbag_sylius_cms_plugin_admin_page_update
diff --git a/tests/Behat/Resources/services/pages/admin/section.xml b/tests/Behat/Resources/services/pages/admin/section.xml
index 1b899f474..6aeefa32a 100644
--- a/tests/Behat/Resources/services/pages/admin/section.xml
+++ b/tests/Behat/Resources/services/pages/admin/section.xml
@@ -5,15 +5,15 @@
- 'bitbag_sylius_cms_plugin_admin_section_index'
+ bitbag_sylius_cms_plugin_admin_section_index
- 'bitbag_sylius_cms_plugin_admin_section_create'
+ bitbag_sylius_cms_plugin_admin_section_create
- 'bitbag_sylius_cms_plugin_admin_section_update'
+ bitbag_sylius_cms_plugin_admin_section_update