Adding CustomFieldsDefaultGroup Entity for specifying that a group is a default group ref #307

This commit is contained in:
Marc Ducobu
2014-11-17 17:59:06 +01:00
parent ce0db40129
commit f702d76e68
6 changed files with 243 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
Chill\CustomFieldsBundle\Entity\CustomFieldsDefaultGroup:
type: entity
table: null
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
entity:
type: string
length: 255
manyToOne:
customFieldsGroup:
targetEntity: Chill\CustomFieldsBundle\Entity\CustomFieldsGroup
inversedBy: customFields
uniqueConstraints:
unique_entity:
columns: [ entity ]

View File

@@ -1,20 +1,23 @@
cl_custom_fields_customfieldsgroup:
chill_customfields_customfieldsgroup:
resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfieldsgroup.yml"
prefix: /
cl_custom_fields_blopentity2:
chill_customfields_blopentity2:
resource: "@ChillCustomFieldsBundle/Resources/config/routing/blopentity2.yml"
prefix: /blopentity2
cl_custom_fields_adress:
chill_customfields_adress:
resource: "@ChillCustomFieldsBundle/Resources/config/routing/adress.yml"
prefix: /adress
cl_custom_fields_customfield:
chill_customfields_customfield:
resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfield.yml"
prefix: /
cl_custom_fields_blopentity:
chill_customfields_blopentity:
resource: "@ChillCustomFieldsBundle/Resources/config/routing/blopentity.yml"
prefix: /
chill_customfields_customfieldsdefaultgroup:
resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfieldsdefaultgroup.yml"
prefix: /

View File

@@ -0,0 +1,7 @@
customfieldsdefaultgroup:
path: /{_locale}/admin/customfieldsdefaultgroup/
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsDefaultGroup:list" }
customfieldsdefaultgroup_set:
path: /{_locale}/admin/customfieldsdefaultgroup/set/group/as/default/
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsDefaultGroup:setAGroupAsDefault" }