public function createGateway($tableName) { $gateway = new Gateway($tableName); $gateway->setConnection($this->getConnection()); return $gateway; }