Raising when relation on child class is not found