Hi everybody,

I'm using the sfDoctrineGuardPlugin, for which I added an Equal Nest
Relation [1] in the sfGuardUser-Table Definition:

# this is added to the sfGuardUser-Table Definition
 relations:
    Relationships:
      class: sfGuardUser
      local: user1
      foreign: user2
      refClass: Relationships
      equal: true

This is the Definition of the Relationships-Table:

Relationships:
  columns:
    user1:      { type: integer(4), primary: true }
    user2:      { type: integer(4), primary: true }
    type:       { type: enum, length: 24, values: [friend,blocked] }

Looks quite right to me :-)

But now I've a problem with the Admin-Backend... When trying to create
or edit (list-View works fine) a User in the Backend, I'm receiving an
error-message:

SQLSTATE[42S22]: Column not found: 1054 Unknown column
'relationships.id' in 'field list'

Does anybody know what I can do to fix this?

Thank you in advance for any help....

Daniel

==========

[1]http://www.doctrine-project.org/documentation/manual/1_1/en/
defining-models#relationships:join-table-associations:self-referencing-
nest-relations:equal-nest-relations

(this is the default Admin-Generator generator.yml-File I'm currently
using)

generator:
  class: sfDoctrineGenerator
  param:
    model_class:           sfGuardUser
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          sf_guard_user
    with_doctrine_route:     1

    config:
      fields:
        password_again: { label: "Password (again)" }

      list:
        title:   User list
        display: [=username, created_at, updated_at, last_login]

      form:
        class: sfGuardUserAdminForm
        display:
          "NONE":                   [username, password,
password_again]
          "Permissions and groups": [is_active, is_super_admin,
groups_list, permissions_list]

      edit:
        title: Editing User "%%username%%"

      new:
        title: New User
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to