implemented conditions on a lazy get() of a related model