3341 Posts in 982 Topics by 703 members
|Go to End|
8 June 2012 at 7:09am
I need a bit of guidance, i have a DealerHolder.php Page, that will hold DataObject Dealer.
The Dealers should be added to one DealerHolder page, and then be available on translations of this page.
What is the best way to achive this?
Right now i have a many_many relation, and it kinda works, i just need to check each dealer on each translation.
Is there som better / more correct way to achive what i'm looking for?
8 June 2012 at 3:37pm
I think you are wanting
static $has_many("Dealers" => "Dealer");
static $has_one("DealerHolder" => "DealerHolder");
14 June 2012 at 7:54pm
But as i see it, that does require me to add new dataobjects for each translation, which is a lot of extra work and does gives problems keeping everything in sync.
Is there something i'm not seeing?
|Go to Top|