/** * Ajax Data */ public function generateCategoriesFullPathAction() { $categories = new Catalog_Model_Mapper_Categories(); $freePathCategories = $categories->fetchFreeRowColumn('full_path'); foreach ($freePathCategories as $category) { $id = $category->id; $fullPath = $categories->generateFullPath($id); $category->fullPath = $fullPath; //if($this->_validateColumn($category->fullPath, 'categories', 'full_path')){ $mapper = new Catalog_Model_Mapper_Categories(); $mapper->save($category); //} } $this->view->entries = $categories->fetchFreeRowColumn('full_path'); }