Hi,

Iv been having a problem that bothers me for the last couple of
weeks.
My schema.yml file contains the following amongst others:

Book:
  actAs:
    Timestampable: ~
    I18n:
      fields: [name, subtitle, schema, color, description]
  columns:
    name: { type: string(255), notnull: true }
    subtitle: { type: string(255), notnull: true }

...

    is_new: {type: boolean, notnull:true, default: false}
  relations:
    Category: { class: BookCategory, onDelete: CASCADE, local:
category_id, foreign: id, foreignAlias: Books }
    Authors:
      foreignAlias: Books
      class: sfGuardUser
      refClass: BookAuthor
    Translators:
      foreignAlias: Books
      class: sfGuardUser
      refClass: BookTranslator
      local: book_id
      foreign: translator_id
    Curators:
      foreignAlias: Books
      class: sfGuardUser
      refClass: BookCurator
      local: book_id
      foreign: curator_id
BookAuthor:
  columns:
    sf_guard_user_id: {type: integer, primary: true}
    book_id: { type: integer, primary: true }
  relations:
    Book:
      foreignAlias: BookAuthors
      onUpdate: CASCADE
      onDelete: CASCADE
    Author:
      class: sfGuardUser
      local: sf_guard_user_id
      foreignAlias: AuthorBooks
      onUpdate: CASCADE
      onDelete: CASCADE
BookTranslator:
  columns:
    translator_id: { type: integer, primary: true }
    book_id: { type: integer, primary: true }
  relations:
    Book:
      foreignAlias: BookTranslators
      onUpdate: CASCADE
      onDelete: CASCADE
    Translator:
      class: sfGuardUser
      local: translator_id
      foreignAlias: TranslatorBooks
      onUpdate: CASCADE
      onDelete: CASCADE
BookCurator:
  columns:
    curator_id: { type: integer, primary: true }
    book_id: { type: integer, primary: true }
  relations:
    Book:
      foreignAlias: BookCurators
      onUpdate: CASCADE
      onDelete: CASCADE
    Curator:
      class: sfGuardUser
      local: curator_id
      foreignAlias: CuratorBooks
      onUpdate: CASCADE
      onDelete: CASCADE

To sum it up there is the book table that has an m-n relationship
with
each of the other 3 tables (Author, Translator, Curator).
When I use only one of these tables (any of the 3) and comment out
the
other two along with their relationships with the Book table,
everything works fine. When I use any 2 of them or all 3, after a row
is succesfully inserted into the DB via symfony's backend, it breaks
in the edit book page and throws the following error:
Unknown record property / related component "Translators" on "Book"
Notice that just using the Translator and Book tables and their m-n
relationship works fine as I said. But it brakes when I introduce one
more table.
Im using the latest version of the sfDoctrineGuardPlugin.

Thanks in advance.

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to