public function insertUsuario(UsuarioDao $usuario) { try { // var_dump($usuario->getEmail());die; $this->sql = "INSERT INTO usuario (idPerfil,login,senha,nome,email) \n VALUES(?,?,AES_ENCRYPT(?,'%@_-inove-_@%'),?,?)"; $this->prepare(); $this->getStmt()->bindParam(1, $usuario->getIdPerfil()); $this->getStmt()->bindParam(2, $usuario->getLogin()); $this->getStmt()->bindParam(3, $usuario->getSenha()); $this->getStmt()->bindParam(4, $usuario->getNome()); $this->getStmt()->bindParam(5, $usuario->getEmail()); return $this->executeStmt(); // echo $this->stmt->rowCount(); } catch (PDOException $e) { echo 'Error: ' . $e; } }