basically i have two modules Customers and logs,
This is basically CRM tool. it used to record how many times we contacted the customer This is my schema # config/doctrine/schema.yml State: actAs: { Timestampable: ~ } columns: name: { type: string(255), notnull: true, unique: true } Status: actAs: { Timestampable: ~ } columns: name: { type: string(255), notnull: true, unique: true } Project: actAs: { Timestampable: ~ } columns: name: { type: string(255), notnull: true, unique: true } Users: actAs: { Timestampable: ~ } columns: state_id: { type: integer, notnull: true } username: { type: string(255), notnull: true, unique: true } password: { type: string(255), notnull: false, unique: true } token: { type: string(255), notnull: true } is_active: { type: boolean, notnull: true, default: 0 } role: { type: integer, default: 0 } relations: State: { onDelete: CASCADE, local: state_id, foreign: id, foreignAlias: State } Customer: actAs: { Timestampable: ~ } columns: state_id: { type: integer, notnull: true } mobile: { type: string(11), notnull: true, unique: true } email: { type: string(255), notnull: false, unique: true } name: { type: string(255), notnull: false } address: { type: string(255)} relations: State: { onDelete: CASCADE, local: state_id, foreign: id, foreignAlias: State } CallLog: actAs: { Timestampable: ~ } columns: customer_id: { type: integer, notnull: true } status_id: { type: integer, notnull: true } project_id: { type: integer, notnull: true } users_id: { type: integer, notnull: true } response: { type: string(255) } relations: Project: { onDelete: CASCADE, local: project_id, foreign: id, foreignAlias: Project } Customer: { onDelete: CASCADE, local: customer_id, foreign: id, foreignAlias: Customer } Status: { onDelete: CASCADE, local: status_id, foreign: id, foreignAlias: Status } Users: { onDelete: CASCADE, local: users_id, foreign: id, foreignAlias: Users } I am using generated forms for this project I need to pass a value (customerid) to generated call_log form how can i do this ? or any alternate way ? This is my form widget abstract class BaseCallLogForm extends BaseFormDoctrine { public function setup() { $this->setWidgets(array( 'id' => new sfWidgetFormInputHidden(), 'customer_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Customer'), 'add_empty' => false)), 'status_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Status'), 'add_empty' => false)), 'project_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Project'), 'add_empty' => false)), 'users_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Users'), 'add_empty' => false)), 'response' => new sfWidgetFormInputText(), 'created_at' => new sfWidgetFormDateTime(), 'updated_at' => new sfWidgetFormDateTime(), )); I need customer id to be hidden and pass it from customer module how can i do this Please help me Thanks in advance Arun Raj R -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en