add copyTo method for model class to update cached entity