Welcome Guest, Not a member yet? Register   Sign In
[DataMapper]several relations between two entities
#1

[eluser]felix_[/eluser]
Hey,
i have the following situation:
i have my table users and my table costunits.

a user can hav many costunits and a costunit can belong to several users.
So i have n:n with an extra table. No problem so far.

But an user also has a default costunit.. so i would have an additional 1:n relationship
and an user can be the admin of several costunits. SO i have another n:n relationship

Whats the best way to realise this situation?

best regards
felix




Theme © iAndrew 2016 - Forum software by © MyBB