/** * Creates an Article object based on a DB row. */ protected function buildDomainObject($row) { $article = new Article(); $article->setId($row['art_id']); $article->setName($row['art_name']); $article->setDesc($row['art_desc']); $article->setPrice($row['art_price']); $article->setDispo($row['art_dispo']); $article->setCat($row['art_cat']); return $article; }