Re: [symfony-users] Re: many to many relationships at admin not working

2009-11-29 Thread Farrukh Abbas
this is the role module generator.yml generator: class: sfPropelAdminGenerator param: model_class: Role theme:default edit: fields: role_permission: { type: admin_double_list, params: through_class=RolePermissionRef } display: [name

Re: [symfony-users] Re: many to many relationships at admin not working

2009-11-29 Thread Greg Romanssen
Hello, could you provide full generator.yml and schema.yml? Thanks, Greg dagger napsal(a): > Ok it started working some how > > I made 2 changes > > 1) i renamed the table role_permission to role_permission_ref > and > 2) I changed the generator.yml file to > edit: > fields: > ro

[symfony-users] Re: many to many relationships at admin not working

2009-10-17 Thread dagger
Ok it started working some how I made 2 changes 1) i renamed the table role_permission to role_permission_ref and 2) I changed the generator.yml file to edit: fields: role_permission: { type: admin_double_list, params: through_class=RolePermissionRef } display: [name, role_p

[symfony-users] Re: many to many relationships at admin not working

2009-09-16 Thread Abraham Montilla
weird :s ... i'm using sf1.2 too 2009/9/16 Farrukh Abbas > tried that too ... does not work ... r u using sf 1.2 ? > can u plz give it a try for experiment sake ... coz i picked the > implementation of many to many relationship from a thread which was based on > 1.0 http://groups.google.com/grou

[symfony-users] Re: many to many relationships at admin not working

2009-09-16 Thread Farrukh Abbas
tried that too ... does not work ... r u using sf 1.2 ? can u plz give it a try for experiment sake ... coz i picked the implementation of many to many relationship from a thread which was based on 1.0 http://groups.google.com/group/symfony-users/msg/627be2a11e61990e

[symfony-users] Re: many to many relationships at admin not working

2009-09-16 Thread Abraham Montilla
oh, try deleting the module and generate it again, i think that's the problem then... 2009/9/16 Farrukh Abbas > yes i did, build-model, form, sql, and insert-sql ... then cache:clear ... > but no difference ... > > On Wed, Sep 16, 2009 at 3:45 AM, Abraham Montilla wrote: > >> i think you actuall

[symfony-users] Re: many to many relationships at admin not working

2009-09-16 Thread Farrukh Abbas
yes i did, build-model, form, sql, and insert-sql ... then cache:clear ... but no difference ... On Wed, Sep 16, 2009 at 3:45 AM, Abraham Montilla wrote: > i think you actually did it, but... did you make the build-all-load > command? and clear the cache only to see if helps. > > 2009/9/15 Farruk

[symfony-users] Re: many to many relationships at admin not working

2009-09-15 Thread Abraham Montilla
i think you actually did it, but... did you make the build-all-load command? and clear the cache only to see if helps. 2009/9/15 Farrukh Abbas > changed the schema to the following (propel), but still no luck ... > > permission: > id: > method_name: { type: VARCHAR, size: 50, requ

[symfony-users] Re: many to many relationships at admin not working

2009-09-15 Thread Farrukh Abbas
changed the schema to the following (propel), but still no luck ... permission: id: method_name: { type: VARCHAR, size: 50, required: true } action_name: { type: VARCHAR, size: 50, required: true } role: id: name: { type: VARCHAR, size: 100, required:

[symfony-users] Re: many to many relationships at admin not working

2009-09-15 Thread Abraham Montilla
Hello dagger, in the schema you have to add foreign keys to the third table, in Doctrine would be something like Permission: columns: id: type: integer(4) primary: true notnull: true method_name: type: string(50) notnull: true action_name: type: st

[symfony-users] Re: Many to Many relationships, how to delete them?

2009-08-31 Thread pcummins
Thomas, If you have defined the many to many relationship in your schema.yml between the 1:M tables the admin generator will automatically adjust the doSave methods of your Base*Form.class.php files to handle the relations. Heres example of schema and resulting code esulting code. (BTW, this is

[symfony-users] Re: Many-to-Many Relationships on Admin Generator Symfony 1.2 .

2009-02-02 Thread Hugo HAMON
Why do you want to know about m2m relationships in admin generator ? On 2 fév, 19:30, Joao wrote: > Hello fellow Symfonians, > > Is there any tutorial on Admin Generator for Many-to-Many > Relationships on 1.2 ? > > Thanks > Joao --~--~-~--~~~---~--~~ You received

[symfony-users] Re: many-to-many Relationships

2007-12-06 Thread Martin H
BTW it's not necessary to initialize backend for the relation table: symfony propel-init-admin backend article_author ArticleAuthor is not needed in the example above. Martin On 5 Dez., 15:46, Martin H <[EMAIL PROTECTED]> wrote: > Hi there, > > I played around some more time and now I got the

[symfony-users] Re: many-to-many Relationships

2007-12-05 Thread Martin H
Hi there, I played around some more time and now I got the ArticleAuthor example working with many-to-many relation! I will describe important steps here, because I think the documentation of generating n-m relations in Symfony is poor. Skipped: initialize project (symfony init-project) * Data

[symfony-users] Re: many-to-many Relationships

2007-12-04 Thread Mat
I'd love to know as well, I assumed that Symfony didn't have anything to cope with this at the moment and just created the table/code myself, but if it does I'd love to hear about it. Mat -Original Message- From: Martin H [mailto:[EMAIL PROTECTED] Sent: 04 December 2007 16:16 To: symfon

[symfony-users] Re: many-to-many relationships

2007-10-25 Thread willy
No idea ? On 24 oct, 17:54, willy <[EMAIL PROTECTED]> wrote: > Hello, > > First, I apologize for my bad English. > It's about the many-to-many relationships that symfony generates. > I have three tables ' sites', 'subscriptions' and' containers' and > their ids > are 'id_site', 'id_subscription'