I think I found a bug in Propel generated models, but I would like to be contradicted
This is an extract from my schema.yml: sf_social_event: _attributes: { phpName: sfSocialEvent } id: ~ user_admin: { type: integer, required: true, foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade, onUpdate: cascade } title: { type: varchar, size: 255, required: true } description: { type: longvarchar, required: true } start: { type: timestamp } end: { type: timestamp } location: { type: varchar, size: 255, required: true } created_at: ~ updated_at: ~ sf_social_event_invite: _attributes: { phpName: sfSocialEventInvite } id: ~ event_id: { type: integer, required: true, foreignTable: sf_social_event, foreignReference: id, onDelete: cascade, onUpdate: cascade } user_id: { type: integer, required: true, foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade, onUpdate: cascade } user_from: { type: integer, required: true, foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade, onUpdate: cascade } replied: { type: boolean } created_at: ~ You can get full schema from svn http://svn.symfony-project.com/plugins/sfSocialPlugin/trunk/config/schema.yml First, if I try to use BasesfSocialEventInvitePeer::doSelecJoinAll() method, I get a Syntax error or access violation: 1066 Not unique table/alias: 'sf_guard_user' That' just because there are 2 foreign keys to sf_guard_user and it seems that Propel it's not smart enough to use table alias (or am I missing something?) Then, if I try to use BasesfSocialEventInvitePeer::doSelecJoinAllExceptsfGuardUserRelatedByUserFrom () method, I get a sfException: Call to undefined method BasesfSocialEvent::addsfSocialEventInviteRelatedByUserFrom Since both methods are auto-generated, I can't guess I'm doing something wrong... but, again, I would like to be contradicted before to open a bug. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---