public function insertVersion($logDone) { $version = new Gpf_Db_Version(); $version->setApplication($this->application); $version->setVersion($this->version); if ($logDone) { $version->setDone(); } $version->insert(); }