• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Datamapper deep relationships

#4
[eluser]WanWizard[/eluser]
Self relationships are documented under "Advanced relationships".

The example is many-to-many, but one-to-many is defined in exactly the same way, but then without the relationship table. Take care how you name the FK (the join_self and join_other values).


Messages In This Thread
Datamapper deep relationships - by El Forum - 10-01-2012, 08:38 AM
Datamapper deep relationships - by El Forum - 10-01-2012, 09:45 AM
Datamapper deep relationships - by El Forum - 10-02-2012, 04:24 AM
Datamapper deep relationships - by El Forum - 10-02-2012, 06:56 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.