Skip to content
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

Copy on RKEntityMapping instance triggers assert #2265

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

IvanKalaica
Copy link

Calling copy on RKEntityMapping instance triggers assert because object is missing entity property at inspection time. Fixed by adding copyPropertiesFromMapping method RKEntityMapping class.

Please include this fix in next release. :)

…ct is missing entity property at inspection time.

Fixed by adding copyPropertiesFromMapping method RKEntityMapping class.
@segiddins
Copy link
Member

Could you add a quick test for this? Thanks!

@@ -68,6 +68,8 @@
*/
@interface RKObjectMapping : RKMapping <NSCopying>

- (void)copyPropertiesFromMapping:(RKObjectMapping *)mapping;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add documentation for this method, and move the declaration to the appropriate section of the header?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants