/** * This method is called in Object_Class::save() and is used to create the database table for the localized data * @return void */ public function classSaved($class) { $localizedFields = new Object_Localizedfield(); $localizedFields->setClass($class); $localizedFields->createUpdateTable(); }
/** * @param $e * @return array */ protected function exceptionHandler($e) { // create view if it doesn't exist already // HACK if (preg_match("/Base table or view not found/", $e->getMessage()) && $this->firstException) { $this->firstException = false; $localizedFields = new Object_Localizedfield(); $localizedFields->setClass(Object_Class::getById($this->model->getClassId())); $localizedFields->createUpdateTable(); return $this->load(); } throw $e; }