Use {@link SqlMapGateway getSqlMapGateway()} property to obtain the gateway
instance used for querying statements defined in the SqlMap configuration files.
$conn = new TDbConnection($dsn,$dbuser,$dbpass);
$manager = new TSqlMapManager($conn);
$manager->configureXml('mydb-sqlmap.xml');
$sqlmap = $manager->getSqlMapGateway();
$result = $sqlmap->queryForObject('Products');