RE: [symfony-users] enum in config/schema.yml

2009-12-18 Thread Olivier LOYNET
Hi With Doctrine you could do that to have a enum with a foreign key Resource: tableName: resource columns: id: { type: integer(4), primary: true, autoincrement: true } resource_type_id: { type: enum, values: [value1, value2, value3], notnull: true } name: { type: string(255) }

Re: [symfony-users] enum in config/schema.yml

2009-12-15 Thread Andrei Dziahel
Hi. 2009/12/15 > Could I do a enumeration in the file schema.yml? > Yes (in Doctrine, at last). > In other words, I need the attribute authors like a enumeration of ids. > This ids would be foreign keys of the entity person or something like that. > How can I do it? > No, you can't. Why not jus