public function set_datastore(Datastore_Interface $store) { $this->store = $store; foreach ($this->groups as $group) { $group->set_datastore($this->store); } }