Check this, taken from jobeet part 19:

# config/schema.yml
jobeet_category:
  _attributes:  { isI18N: true, i18nTable: jobeet_category_i18n }
  id:           ~

jobeet_category_i18n:
  id:           { type: integer, required: true, primaryKey: true,
foreignTable: jobeet_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 }

You'll need those `isI18N` and `i18nTable` attributes.

On Wed, Mar 18, 2009 at 12:59, Ghizlane Zinbi <[email protected]> wrote:
> Hi,
> I create 2 tables for translation:
>   nationalite:
>     _attributes: { phpName: Nationalite }
>     id:
>     code:         varchar(255)
>     intitule:     varchar(255)
>     blacklist:    boolean
>     created_at:
>   nationalite_i18n:
>     _attributes: { phpName: NationaliteI18n }
>     name:        varchar(50)
>
>
> The problem is that i cant retreive Nationalite Object translations. The
> solution i found is: je suis obligée de passer par l'objet NationaliteI18n :
>
>     $n = NationaliteI18nPeer::retrieveByPk(1,'fr');
>
> But this is not what i need, the objective is retreive Nationalite Object
> through the user culture. How can i do it?
>
> Thanks for help.
>
>
> Ghizlane,
> >
>

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