See <http://doc.silverstripe.org/framework/en/tutorials/5-dataobject-relationship-management> for what I mean