From fa430cb3bc7efd9c581f6d319f93a1e20fe5f067 Mon Sep 17 00:00:00 2001
From: Matthieu Guffroy <mattgu74@gmail.com>
Date: Wed, 18 Jun 2014 00:43:24 +0200
Subject: [PATCH] test change numTel in num_tel

---
 class/client.php | 10 +++++-----
 class/objet.php  |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/class/client.php b/class/client.php
index 8b45b2c..71a7747 100644
--- a/class/client.php
+++ b/class/client.php
@@ -2,15 +2,15 @@
 
 class Client extends Personne
 {
-    protected $numTel;
+    protected $num_tel;
 
-    public function numTel()
+    public function num_tel()
     {
-        return $this->numTel;
+        return $this->num_tel;
     }
     
-    public function setNumTel($numTel)
+    public function setNum_tel($num_tel)
     {
-        $this->numTel = $numTel;
+        $this->num_tel = $num_tel;
     }
 }
\ No newline at end of file
diff --git a/class/objet.php b/class/objet.php
index 0a16bd7..149d5a3 100644
--- a/class/objet.php
+++ b/class/objet.php
@@ -76,7 +76,7 @@ class Objet
 
         //$req = "INSERT INTO ".$dbName." (".implode(",", array_keys($values)).")
         //VALUES (".implode(",", array_values($values)).")";
-        $req = "INSERT INTO client (id,nom,prenom,numTel) VALUES (nextval('client_id_seq'::regclass), :nom, :prenom, :numTel)";
+        $req = "INSERT INTO client (id,nom,prenom,num_tel) VALUES (nextval('client_id_seq'::regclass), :nom, :prenom, :num_tel)";
 
 
         //debug
-- 
GitLab