Exemple #1
0
 /**
  * Creates an categorie object based on a DB row.
  *
  * @param array $row The DB row containing categorie data.
  * @return \Babydressing\Domain\categorie
  */
 protected function buildDomainObject($row)
 {
     $categorie = new categorie();
     $categorie->setId($row['cat_id']);
     $categorie->setnom($row['cat_nom']);
     return $categorie;
 }
 /**
  * Creates an Categorie object based on a DB row.
  *
  * @param array $row The DB row containing Categorie data.
  * @return \BuyOrgans\Domain\Categorie
  */
 protected function buildDomainObject($row)
 {
     $categorie = new categorie();
     $categorie->setId($row['cat_id']);
     $categorie->setTitle($row['cat_title']);
     $categorie->setImage($row['cat_img']);
     return $categorie;
 }