how can i in Symfony 1.4 and Doctrine make one form, that will add data to two tables? Default Symfony generated form for one table and module. at which point I can edit it and add their own fields? http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 generated. i would like for example add field with new category.
# config/doctrine/schema.yml
JobeetCategory:
actAs: { Timestampable: ~ }
columns:
name: { type: string(255), notnull: true, unique: true }
JobeetJob:
actAs: { Timestampable: ~ }
columns:
category_id: { type: integer, notnull: true }
(...)
expires_at: { type: timestamp, notnull: true }
relations:
JobeetCategory: { onDelete: CASCADE, local: category_id, foreign: id, foreignAlias: JobeetJobs }
this form add only id JobeetJob. how can i add into also JobeetCategory?