Esempio n. 1
0
 private function _toObject($dbRow)
 {
     $genre = new Genre();
     $genre->setId($dbRow->GenreId);
     $genre->setCode($dbRow->GenreCode);
     $genre->setDescription($dbRow->GenreDesc);
     $genre->setMeta($dbRow->GenreMeta);
     $genre->setBooksNumber($dbRow->BooksNumber);
     return $genre;
 }