private function tableGateway() { if (!$this->tableGateway) { $this->tableGateway = new TableGateway($this->tableName, $this->adapter); } return $this->tableGateway; }