There is a getTableSchema() method  in the AR. It's documented so type hinting should be required.