Gaetan de Menten schrieb:
> On Thu, Aug 14, 2008 at 5:12 PM, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> 
>> I'm mapping an existing schema with elixir. One thing strikes me as odd is
>> that local_side/remote_side on ManyToMany-relationships can only be specified
>> (or are respected) when auto-mapping.
>>
>> I don't want to auto-map, my desire is to create full mappings so that I can
>> from then on work with my elixir/sa-model.
>>
>> What's the rationale behind not respecting the parameters as column-names?
> 
> What exactly do you want to achieve? Do you want to have custom names
> in your ManyToMany table? If this is the case, isn't the column_format
> argument enough for you?

I didn't realize it. It might work as well - but certainly it's a bit 
more complicted :)

> And, FWIW, there is no rationale. This is just the way it is because
> nobody really needed custom names beyond what column_format allows you
> do to yet. What you suggest is probably a more elegant solution to the
> column_format argument.
> 
> I was a bit uneasy to implement it because in the case where several
> columns are needed on one (or both) side(s), the column names would
> need to be given in the same order the primary key columns are
> declared on the targeted entities. Now that I think of it, I don't
> think it's an unreasonable requirement if it is clearly stated in the
> documentation. A patch in that direction would be very likely to be
> accepted ;-).

I will see if I can do that :)

Diez

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to