diff --git a/class/ordonnance.php b/class/ordonnance.php index 2a281c4367fa7fdf0bb72ee0d1411c318026d90b..5fb1ac00bd89e2df0769e17577b9ee585fecc8da 100644 --- a/class/ordonnance.php +++ b/class/ordonnance.php @@ -78,6 +78,8 @@ class Ordonnance extends Objet } public function str() { - return $this->animal." ".$this->date; + $animal = new Animal() + $fields = $animal->select($this->id) + return $fields["nom"]." ".$this->date; } } \ No newline at end of file diff --git a/class/race.php b/class/race.php index e60d36435b4ef7d37937936a17caf20c46e77704..4c073fb2f39b1f9e1f0da307cfdc93d0c4ba0f25 100644 --- a/class/race.php +++ b/class/race.php @@ -64,7 +64,9 @@ class Race extends Objet } public function str() { - $tostr = $this->nom.' '.$this->espece; + $esp = new Espece(); + $esp->select($this->espece); + $tostr = $esp->str().' : '.$this->nom; return $tostr; } } \ No newline at end of file