getMainTable will only work with resource model.