Adding Report Entity

This commit is contained in:
Marc Ducobu
2014-11-07 16:34:09 +01:00
parent a911c7aeae
commit 8d4ad512bd
8 changed files with 547 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
Chill\ReportBundle\Entity\Report:
type: entity
table: null
id:
id:
type: integer
id: true
generator:
strategy: AUTO
fields:
date:
type: datetime
scope:
type: string
length: 255
cFData:
type: json_array
manyToOne:
user:
targetEntity: Chill\MainBundle\Entity\User
person:
targetEntity: Chill\MainBundle\Entity\Person
cFGroup:
targetEntity: Chill\CustomFieldsBundle\Entity\CustomFieldsGroup
lifecycleCallbacks: { }

View File

@@ -1,3 +1,3 @@
chill_report_homepage:
path: /hello/{name}
defaults: { _controller: ChillReportBundle:Default:index }
cl_custom_fields_report:
resource: "@ChillReportBundle/Resources/config/routing/report.yml"
prefix: /report

View File

@@ -0,0 +1,30 @@
report:
path: /
defaults: { _controller: "ChillReportBundle:report:index" }
report_show:
path: /{id}/show
defaults: { _controller: "ChillReportBundle:report:show" }
report_new:
path: /new
defaults: { _controller: "ChillReportBundle:report:new" }
report_create:
path: /create
defaults: { _controller: "ChillReportBundle:report:create" }
requirements: { _method: post }
report_edit:
path: /{id}/edit
defaults: { _controller: "ChillReportBundle:report:edit" }
report_update:
path: /{id}/update
defaults: { _controller: "ChillReportBundle:report:update" }
requirements: { _method: post|put }
report_delete:
path: /{id}/delete
defaults: { _controller: "ChillReportBundle:report:delete" }
requirements: { _method: post|delete }

View File

@@ -1 +0,0 @@
Hello {{ name }}!