This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » Form for many-to-many relation with extra field
Form for many-to-many relation with extra field [message #100784] Fri, 11 June 2010 11:17 Go to previous message
FunFR  is currently offline FunFR
Messages: 1
Registered: June 2010
Junior Member
I have a problem with making a form to edit a many-to-many relation with extra field.

Here is my schema.yml

Application:
  actAs: { Timestampable: ~ }
  columns:
    name:         { type: string(255), notnull: true, unique: true }
  relations:
    Properties:
      class: Property
      refClass: ApplicationProperty
      local: application_id
      foreign: property_id
      foreignAlias: Applications

Property:
  actAs: { Timestampable: ~ }
  columns:
    name:    { type: string(255), notnull: true, unique: true }

ApplicationProperty:
  actAs: { Timestampable: ~ }
  columns:
    id: { type: integer, primary: true, autoincrement: true }
    application_id: { type: integer, notnull: true }
    property_id:   { type: integer, notnull: true }
    value:         { type: string(255), notnull: true }
  relations:
    Application: { onDelete: CASCADE, local: application_id, foreign: id }
    Property:    { onDelete: CASCADE, local: property_id, foreign: id }


I want to assign new preperties to my application with a certain value but the form that is generate by Symfony is a simple multiple select field and it did not permit to assign a value to the extra field.

I am searching a standard way of making a form with extra field and many-to-many relation ?

Read Message
Read Message
Previous Topic:[SOLVED] Help with Doctrine and I18n Fields
Next Topic:configuring component slots
Goto Forum:

  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software