public function update(Entity $entity) { $group = $entity->getId(); $this->verifyGroup($group); $config = \Kohana::$config->load($group); $immutable = $entity->getImmutable(); foreach ($entity->getChanged() as $key => $val) { if (!in_array($key, $immutable)) { $config->set($key, $val); } } }