Hi!

I have the following schema:

 

Category:

  actAs:

    Timestampable: ~    

    I18n:

      fields: [name]

  columns:    

    name:

      type: string(255)

  relations:

    Category:

      class: Category

      local: parent_id

      foreign: child_id

      refClass: CategoryReference

      foreignAlias: Parent

    Products:

      type: many

      class: Product

      local: id

      foreign: category_id

CategoryReference:

  columns:

    parent_id:

      type: integer

      primary: true

    child_id:

      type: integer

      primary: true

 

As you can see, Category has a relation with itself, so to create a category
tree.

Everything works fine until I try to edit a category using admin-generated
forms, as it says:

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

It tries to retrieve “name” field from “category” table instead of
“category_translation”… why? :-| Is this a bug?

I spent a lot of time trying to find a solution, but I didn’t succeeded.

I used this schema in other projects, without i18n, and it works flawlessy.

I’m using symfony 1.4.9 (this happens also on 1.4.8).

 

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