public function saveMapperConfig() { $smarty = $this->smarty(); $smarty->appendData(['entityData' => $this->entityData]); $filepath = config::getConfigFilepath($this->entityData['struct']['mapper']['fullClassName']); file_put_contents($filepath, $smarty->render('mapperConfig.tpl', true)); }