Skip to content

Instantly share code, notes, and snippets.

@link82
Created July 4, 2012 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save link82/3049700 to your computer and use it in GitHub Desktop.
Save link82/3049700 to your computer and use it in GitHub Desktop.
Serialization output
2012-07-04 23:38:29.435 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:435 Performing nested object mapping using mapping RKObjectKeyPathMapping: songs => songs for data: <Song: 0x8997690>
2012-07-04 23:38:29.435 Needle[1314:12803] D restkit.object_mapping:RKObjectMappingOperation.m:636 Starting mapping operation...
2012-07-04 23:38:29.436 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:637 Performing mapping operation: RKObjectMappingOperation for 'Song' object. Mapping values from object <Song: 0x8997690> to object <Song: 0x89990e0> with object mapping <RKObjectMapping:0x7e84230 objectClass=Song keyPath mappings => (
"RKObjectKeyPathMapping: source => source",
"RKObjectKeyPathMapping: album_id => album_id",
"RKObjectKeyPathMapping: track_name => track_name",
"RKObjectKeyPathMapping: disc_number => disc_number",
"RKObjectKeyPathMapping: track_number => track_number"
)>
2012-07-04 23:38:29.496 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:399 Did not find mappable attribute value keyPath 'source'
2012-07-04 23:38:29.497 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:399 Did not find mappable attribute value keyPath 'album_id'
2012-07-04 23:38:29.497 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:330 Mapping attribute value keyPath 'track_name' to 'track_name'
2012-07-04 23:38:29.498 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:340 Mapped attribute value from keyPath 'track_name' to 'track_name'. Value: B-Day Song (feat. M.I.A.)
2012-07-04 23:38:29.498 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:330 Mapping attribute value keyPath 'disc_number' to 'disc_number'
2012-07-04 23:38:29.499 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:340 Mapped attribute value from keyPath 'disc_number' to 'disc_number'. Value: 1
2012-07-04 23:38:29.499 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:330 Mapping attribute value keyPath 'track_number' to 'track_number'
2012-07-04 23:38:29.500 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:340 Mapped attribute value from keyPath 'track_number' to 'track_number'. Value: 15
2012-07-04 23:38:29.536 Needle[1314:12803] D restkit.object_mapping:RKObjectMappingOperation.m:643 Finished mapping operation successfully...
......for each song.....
but this is the output i receive for the "songs" relationship
2012-07-04 23:38:29.618 Needle[1314:12803] T restkit.object_mapping:RKObjectMappingOperation.m:569 Mapped relationship object from keyPath 'songs' to 'songs'. Value: (
"<Song: 0xf562d90>",
"<Song: 0xf566dd0>",
"<Song: 0x8998d90>",
"<Song: 0xf566eb0>",
"<Song: 0xf566e50>",
"<Song: 0x8998f00>",
"<Song: 0xf566e20>",
"<Song: 0x8998f70>",
"<Song: 0xf566fc0>",
"<Song: 0x89990b0>",
"<Song: 0xf5670d0>",
"<Song: 0xf567180>",
"<Song: 0xf5671f0>",
"<Song: 0xf567300>",
"<Song: 0x89990e0>",
"<Song: 0x8999170>",
"<Song: 0xf567390>"
)
2012-07-04 23:38:29.619 Needle[1314:12803] D restkit.object_mapping:RKObjectMappingOperation.m:643 Finished mapping operation successfully...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment