[symfony-users] Doctrine question
I have the following yaml schema: Profile: # blah blah Channel: actAs: { Timestampable: ~ } columns: sender_id: { type: integer, notnull: true } receiver_id: { type: integer, notnull: true } relations: Profile: { local: sender_id, foreign: id } How can I relate receiver_id to the same Profile table as sender_id? Cheers, A. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Doctrine question
Hi, Try this : Channel: actAs: { Timestampable: ~ } columns: sender_id: { type: integer, notnull: true } receiver_id: { type: integer, notnull: true } relations: SenderProfile: { local: sender_id, foreign: id, class: Profile} ReceiverProfile: { local: receiver_id, foreign: id, class: Profile} //Syam Alexander Deruwe wrote: I have the following yaml schema: Profile: # blah blah Channel: actAs: { Timestampable: ~ } columns: sender_id: { type: integer, notnull: true } receiver_id: { type: integer, notnull: true } relations: Profile: { local: sender_id, foreign: id } How can I relate receiver_id to the same Profile table as sender_id? Cheers, A. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
RE: [symfony-users] Doctrine question
That worked just fine! Thanks a bunch. A. -Oorspronkelijk bericht- Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Namens Syam Verzonden: vrijdag 12 maart 2010 15:14 Aan: symfony-users@googlegroups.com Onderwerp: Re: [symfony-users] Doctrine question Hi, Try this : Channel: actAs: { Timestampable: ~ } columns: sender_id: { type: integer, notnull: true } receiver_id: { type: integer, notnull: true } relations: SenderProfile: { local: sender_id, foreign: id, class: Profile} ReceiverProfile: { local: receiver_id, foreign: id, class: Profile} //Syam -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en