public function getId() { if ($this->id == null) { $this->id = $this->autoId(); } return $this->id; }