i found the answer myself in the meantime

see 
http://trac.symfony-project.org/wiki/HowToHandlei18nDbFieldsWithAdminGenerator1.2

regards, lowshoe

On Mar 31, 3:54 pm, lowshoe <lows...@gmail.com> wrote:
> hi,
>
> i'm using symfony 1.2.5 and have problems with internationalized
> models in the backend.
> i tried to reproduce te internationalization-paret of the jobeet-
> tutorial athttp://www.symfony-project.org/jobeet/1_2/Propel/en/19
>
> i have the following schema:
>
> # config/schema.yml
>  category:
>     _attributes:  { isI18N: true, i18nTable: category_i18n }
>     id:           ~
>
>  category_i18n:
>     id:           { type: integer, required: true, primaryKey: true,
> foreignTable: category, foreignReference: id }
>     culture:    { isCulture: true, type: varchar, size: 7, required:
> true, primaryKey: true }
>     name:      { type: varchar(255), required: true }
>     slug:        { type: varchar(255), required: true }
>
> i then used
>
> > php symfony propel:build-all
> and
> > php symfony propel:generate-admin backend Category --module=category
>
> when i now go tohttp://myapp.local/backend_dev.php/category/new, i
> only get an empty form where i can enter nothing, which is clear at
> first glance, because the schema definition for the category just
> defines the id attribute. but as far as i know symfony recognizes the
> i18n-dependance and generates the related fields automagically, like
> athttp://www.symfony-project.org/jobeet/1_2/Propel/en/19#chapter_19_sub...
> do i need to  adjust generator.yml for this or did i overlook
> something completely?
>
> i hope, some can help.
> regards,lowshoe
--~--~---------~--~----~------------~-------~--~----~
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