/**
  *
  * @param Client $client
  * @return type
  * @throws DaoException 
  */
 public function updateClient(Client $client)
 {
     try {
         $query = Doctrine_Query::create()->update('Client i');
         $query->set('i.name', '?', $client->getName());
         $query->set('i.address', '?', $client->getAddress());
         $query->set('i.tp_hp', '?', $client->getTpHp());
         $query->set('i.tp_home', '?', $client->getTpHome());
         $query->set('i.notes', '?', $client->getNotes());
         $query->where('i.id = ?', $client->getId());
         return $query->execute();
     } catch (Exception $e) {
         throw new DaoException($e->getMessage(), $e->getCode(), $e);
     }
 }