[symfony-users] schema.yml // 2 relations for a same table problem

2010-09-07 Thread ziclo
Hello, I have created a schema.yml but I do not know how to create 2 relations for a same table. How can i disctinct those 2 relations (rsource). With a suffix ? Here is my code : TrackerPret: actAs: { Timestampable: ~ } connection: doctrine attributes: export: tables columns:

Re: [symfony-users] schema.yml // 2 relations for a same table problem

2010-09-07 Thread Pietrino Atzeni
Hi, just define a different name for each of them, and use a class attribute: relations: User: {class: rsource, local: oid_user, foreign: oid, foreignAlias: ASAusers } CDP: {class: rsource, local: oid_cdp, foreign: oid, foreignAlias: ASAcdps } Hope this helps, Pietro Hello,