title: Dataobject and Page relationships
body: <p><a href="http://www.silverstripe.org/archive/show/1638" rel="nofollow">http://www.silverstripe.org/archive/show/1638</a></p>
  
  <p>The above post seems like it's what I should do but I just need some help sorting this out in my head.</p>
  
  <p>Firstly, I need to create a relationship between a page (Owner, for example) and a dataobject (Car). An owner can create many cars which are linked to that one owner. However, I have another page (Garage) which can create cars that are linked to every owner. If an owner does not want one of these cars they reject it. I was thinking the manymanydataobjectmanager would be good for that bit.</p>
  
  <p>Each owner should only be able to see the cars that relate directly to them within the CMS, not other peoples cars, so I was using dataobjectmanager and assigning permissions to the page using groups. </p>
  
  <p>The thing that is really making this awkward is that when it's all set up I need to output JSON which will consist of the cars the owners created and the cars they accepted from the garage, not the ones they rejected. I'm thinking I need another table like the linked table but with a status column perhaps?</p>
  
  <p>To clarify, my question is how do I create this mess in a constructive SilverStripe way? Is the approach I was taking correct or is there a better way?</p>
  
  <p>Many thanks in advance and please tell me if I've been unclear.</p>