Greeting again --

I was able to get the following schema to work for an M:M relationship
between people and days-of-the-week (A person can have many days of
the week) ...

Can a doctrine_admin_check_list be used in the Edit admin-generator to
manage this relationship?

# Schema.yml
---

Person:
  columns:
    id:
      type: integer
      primary: true
      autoincrement: true
    fullname:
      type: string(50)
  relations:
    Days:
      class: Day
      local: person_id
      foreign: day_id
      refClass: PersonDay

Day:
  columns:
    id:
      type: integer
      primary: true
      autoincrement: true
    abbrev:
      type: string(3)
  relations:
    Persons:
      class: Person
      local: day_id
      foreign: person_id
      refClass: PersonDay


PersonDay:
  columns:
    day_id:
      type:    integer
      primary: true
    person_id:
      type:    integer
      primary: true



# Generator.yml
generator:
  class: sfDoctrineGenerator
  param:
    model_class:           Person
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          person
    with_doctrine_route:   true
    actions_base_class:    sfActions

    config:
      actions: ~
      fields:  ~
      list:
        display: [id, fullname, _Days]
      filter:  ~
      form:    ~
      edit:
        display: [fullname, days_list]
        title: Edit some dumb Foo!
        fields:
          fullname:
            label: name
            type: input_tag
          days_list:
            label: "scheduled days"
            type: doctrine_admin_check_list
      new:     ~


right now the relation is showing as a select tag with multiple ==
true (default generator view). Any help is appreciated.

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to