Welcome Guest, Not a member yet? Register   Sign In
How to represent this relationship in DataMapper
#1

[eluser]papercut[/eluser]
Hi,

I'm using DataMapper with CodeIgniter and I'm having problems representing this relationship between two entities — Session and User.

- A Session has 1 author (User);
- A Session can be accessed by many Users.

I can successfully implement the first relationship alone, without the need of a join table, and I can also implement the second relationship alone, with a join table. But I can't get the two working at the same time.

How should I define them?

Thanks!


Messages In This Thread
How to represent this relationship in DataMapper - by El Forum - 08-17-2013, 03:28 PM
How to represent this relationship in DataMapper - by El Forum - 08-17-2013, 03:49 PM
How to represent this relationship in DataMapper - by El Forum - 08-17-2013, 04:00 PM
How to represent this relationship in DataMapper - by El Forum - 08-18-2013, 06:57 AM
How to represent this relationship in DataMapper - by El Forum - 08-18-2013, 09:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB