public function __get($var) { if ($var == "aventuriers") { if ($this->aventuriers === null) { $this->aventuriers = User::ListerAventuriers($this->id); } } return $this->{$var}; }