diff --git a/class/espece.php b/class/espece.php
index 3d40b2ec8ca54ebcc3f59112b6cd98c578b0e959..1652d9817222e0291c564f1a7e56017a32d60da4 100644
--- a/class/espece.php
+++ b/class/espece.php
@@ -2,10 +2,20 @@
 
 class Espece extends Objet
 {
-    public $_primaryAttr = "nom";
+    protected $id
     protected $nom;
     protected $prix_consultation;
 
+    public function id()
+    {
+        return $this->id;
+    }
+    
+    public function setId($id)
+    {
+        $this->id = $id;
+    }
+
     public function nom()
     {
         return $this->nom;
diff --git a/class/race.php b/class/race.php
index 769ae15ac347e9529a2edb86b925e4eb9c64cbff..8cc3e75657ee382c57bea950336a145e2f83bd19 100644
--- a/class/race.php
+++ b/class/race.php
@@ -2,11 +2,21 @@
 
 class Race extends Objet
 {
-    public $_primaryAttr = "nom";
+    protected $id
     protected $nom;
     protected $espece;
     protected $prix_intervention;
 
+    public function id()
+    {
+        return $this->id;
+    }
+    
+    public function setId($id)
+    {
+        $this->id = $id;
+    }
+
     public function nom()
     {
         return $this->nom;