Welcome Guest, Not a member yet? Register   Sign In
How to have multiple relationships to same model when HAS_ONE in both directions with DMZ?
#2

[eluser]WanWizard[/eluser]
You can't do this without a relationship table.

The problem is that when you do $cardside->save($card), Datamapper is going to try to find the relationship, and the keys that define this relationship. In your setup, it finds two. Which one to use?


Messages In This Thread
How to have multiple relationships to same model when HAS_ONE in both directions with DMZ? - by El Forum - 11-27-2010, 06:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB