public function getHydrator() { if (!$this->hydrator) { $this->hydrator = new Hydrator($this); } return $this->hydrator; }