Example #1
0
 public function saveUser(Client $user)
 {
     $userData = $user->getArrayData();
     if ($this->getUser($user->uid) == NULL) {
         // SI NO EXISTE EL USUARIO
         $this->tableGateway->insert($userData);
     } else {
         $this->tableGateway->update($userData, array('UID' => $user->uid));
     }
 }