/** * Create a new Query instance * @return \Blast\Orm\Gateway */ public function createGateway($tableName) { $gateway = new Gateway($tableName); $gateway->setConnection($this->getConnection()); return $gateway; }