Media - Fix sonata media/classification installation

pull/2715/head
Julio 6 years ago
parent 98aa3010d8
commit 0fa0acd2b9
  1. 1
      config/packages/security.yaml
  2. 2
      config/packages/sonata_media.yaml
  3. 4
      src/ClassificationBundle/Resources/config/doctrine/Context.orm.xml

@ -19,6 +19,7 @@ security:
role_hierarchy:
ROLE_SONATA_ADMIN: ROLE_USER
ROLE_ADMIN:
- ROLE_SUPER_ADMIN
- ROLE_SONATA_ADMIN
- ROLE_QUESTION_MANAGER
- ROLE_SESSION_MANAGER

@ -20,14 +20,12 @@ sonata_media:
small: {width: 100, quality: 100}
medium: {width: 300, quality: 100}
big: {width: 970, quality: 100}
sonata_collection:
providers:
- sonata.media.provider.image
formats:
preview: {width: 100, quality: 100}
wide: {width: 820, quality: 100}
sonata_category:
providers:
- sonata.media.provider.image

@ -16,8 +16,8 @@
table="classification__context"
repository-class="Doctrine\ORM\EntityRepository">
<id name="id" type="integer" column="id">
<generator strategy="AUTO"/>
<id name="id" type="string" column="id">
<generator strategy="NONE"/>
</id>
<options>
<option name="row_format">DYNAMIC</option>

Loading…
Cancel
Save