if the association is not set or not exposed, then an exception should be thrown