|
|
| Author |
Message |
|
| Guest |
Posted: Fri Oct 03, 2008 2:30 pm |
|
|
|
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 |
|
|
| Back to top |
|
| Guest |
Posted: Sun Oct 05, 2008 2:07 am |
|
|
|
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 |
|
|
| Back to top |
|
| Guest |
Posted: Mon Oct 06, 2008 8:01 am |
|
|
|
Guest
|
Cool, thanx
On Oct 5, 4:06 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|