public function save($force = false) { if (!$force) { if (realpath($this->file) === realpath($this->packagePath(self::DB))) { self::raise(__METHOD__, 'The bundled db is read only'); } } //Pack and save $a = array(); foreach ($this->db as $class => $model) { $a[$class] = array_keys($model); } $_ =& $this->db; $this->db =& $a; parent::save(); $this->db =& $_; }