/** * Creates an Article object based on a DB row. * * @param array $row The DB row containing Article data. * @return \MicroCMS\Domain\Article */ protected function buildDomainObject($row) { $adherent = new Adherent(); $adherent->setId($row['adh_id']); $adherent->setCivilite($row['adh_civilite']); $adherent->setNom($row['adh_nom']); $adherent->setPrenom($row['adh_prenom']); $adherent->setGroupe($row['adh_groupe']); $adherent->setAdresse($row['adh_adresse']); $adherent->setCodePostal($row['adh_codepostal']); $adherent->setVille($row['adh_ville']); $adherent->setDepartement($row['adh_departement']); $adherent->setPays($row['adh_pays']); $adherent->setEmail($row['adh_email']); $adherent->setPhone($row['adh_phone']); $adherent->setMobile($row['adh_mobile']); $adherent->setDateCreation($row['adh_datecreation']); $adherent->setUserAuteur($row['int_user_auteur']); $adherent->setDateLastMod($row['adh_datelastmod']); $adherent->setUserLastModAuteur($row['int_user_lastmodauteur']); $adherent->setIsajour($row['adh_isajour']); return $adherent; }