-
-
Notifications
You must be signed in to change notification settings - Fork 216
fix: TypeError on addRelation function
#1098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: mtrezza <[email protected]>
Co-authored-by: mtrezza <[email protected]>
addRelation function
|
🚀 Thanks for opening this pull request! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1098 +/- ##
=======================================
Coverage 43.96% 43.96%
=======================================
Files 61 61
Lines 3596 3596
=======================================
Hits 1581 1581
Misses 2015 2015 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@copilot fix the lint issues in CI |
Co-authored-by: mtrezza <[email protected]>
# [dart-v9.4.6](dart-9.4.5...dart-9.4.6) (2025-12-04) ### Bug Fixes * TypeError on `addRelation` function ([#1098](#1098)) ([f284944](f284944))
|
🎉 This change has been released in version dart-v9.4.6 |
_TypeError (type '_Set<ParseObject>' is not a subtype of type 'Set<Contact>' in type cast)when callingaddRelationwith custom ParseObject subclassesparse_relation.dartline 93,knownObjects = lastPreformedOperation!.value.toSet() as Set<T>;casts aSet<ParseObject>toSet<T>which fails for subclasses whengetRelation<T>()was called firstknownObjectsfromSet<T>toSet<ParseObject>and remove the unsafe castOriginal prompt
This section details on the original issue you should resolve
<issue_title>_TypeError on addRelation</issue_title>
<issue_description>### New Issue Checklist
Issue Description
Having:
Order Class
Order Schema
Contact class
Steps to reproduce