return NULL for getRelationship() if the model is not valid