Ejemplo n.º 1
0
 public function getCategory()
 {
     if (!$this->category) {
         $categoryManager = new CategoryManager($this->db);
         $this->category = $categoryManager->findByid($this->id_category);
     }
     return $this->category;
 }