Erlang Mailing Lists

Author Message

<  Erlyweb mailing list  ~  custom many_to_many table name

Guest
Posted: Fri Oct 03, 2008 2:30 pm Reply with quote
Guest
Hi,

Is it possible to have a custom many_to_many table name?
And
If this custom table is for example a friends table, what to do with
user_id and the other user_id ?

regards, Ruud
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
Guest
Posted: Sun Oct 05, 2008 2:07 am Reply with quote
Guest
Yeah, it's possible. Example:

relations() ->
[{many_to_many, [{relation_table, foo}]}].

The id fields should be user_id1 and user_id2.

Yariv

On Fri, Oct 3, 2008 at 7:30 AM, Ruud <ruud.prein@gmail.com> wrote:
>
> Hi,
>
> Is it possible to have a custom many_to_many table name?
> And
> If this custom table is for example a friends table, what to do with
> user_id and the other user_id ?
>
> regards, Ruud
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
Guest
Posted: Mon Oct 06, 2008 8:01 am Reply with quote
Guest
Cool, thanx

On Oct 5, 4:06

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum