public function saveUser(GDueno $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)); } }
public static function getTableIO($adapter) { return new GDuenoTable(GDueno::getTableGateway($adapter)); }