Hi all,
I have a model that has a one-to-one relationship with a number of different
models - Page.
page:
_attributes: { phpName: Page }
id: ~
filename: varchar(255)
seo_type: boolean # enum('static','dynamic')
seo_meta_title: varchar(255)
seo_meta_description: varchar(255)
seo_meta_keywords: varchar(255)
order_by: integer
Here is one model that uses page - content:
content:
_attributes: { phpName: Content }
id: ~
page_id: { type: integer, foreignKey: true, required: true, foreignTable:
page, foreignReference: id, onDelete: cascade }
template_id: { type: integer, foreignKey: true, required: true,
foreignTable: template, foreignReference: id, onDelete: cascade }
title: varchar(255)
short_text: varchar(255)
long_text: longvarchar
visibility: boolean
access: boolean
popup: boolean
created_at: ~
updated_at: ~
Using generator.yml is it possible to create/edit both the page and content
models in the same view ?
Or would I need to create the forms manually ?
Cheeers,
Patrick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---