Thanks Carsten; yes I forget the " isCulture: true " attribute . my probleme is resolved . Ahmed .
On 16 avr, 07:53, Carsten Schumann <[email protected]> wrote: > Hi Ahmed, > > there are two things different from my i18n scheme file which is working: > > 1. the indention of the lines containing country: (indention 0) and > country_i18n: (indention 2) seems strange. these lines should be at the same > idention level, but i guess, it's a copy-and-paste result and your schema > should be fine. > > 2. in the line containing the definition for column culture there is one > attribute missing: isCulture: true > I guess this attribute cannot be set correctly when importing from da > database because the database does not know that the column is an i18n > index. Try adding the attribute and regenerating the model. For the > isCulture attribute > seehttp://www.symfony-project.org/book/1_2/13-I18n-and-L10nsection "Creating > Localized Schema". > > Carsten > > On Wed, Apr 15, 2009 at 4:32 PM, Ahmed <[email protected]> wrote: > > > Hi all ; > > I found a probleme in a propel generation when adding some i18n table > > in my schema.yml file . > > Whene i execute : symfony propel:build-model > > I don't have any warning message or error > > But whene i lunch my site i have this error : > > Parse error: parse error, expecting `')'' in www\lib\model\om > > \BaseCountryPeer.php on line 444 > > And in the line 444 i found this > > $c->add(, $culture); > > > This a part off my schema file : > > > country: > > _attributes: { phpName: Country, isI18N: true, i18nTable: > > country_i18n } > > id: { type: INTEGER, size: '10', primaryKey: true, autoIncrement: > > true, required: true } > > country_i18n: > > _attributes: { phpName: CountryI18n } > > culture: { type: VARCHAR, size: '7', primaryKey: true, required: > > true } > > country_id: { type: INTEGER, size: '10', primaryKey: true, > > required: true, foreignTable: country, foreignReference: id, onDelete: > > RESTRICT, onUpdate: RESTRICT } > > title: { type: VARCHAR, size: '40', required: false } > > _indexes: { country_i18n_FKIndex1: [country_id] } > > > Note : i build this yml file from a the database with this cli : > > symfony propel-build-schema > > Help me please I am bloqued . > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
