Foreverland / SYNCPropertyMapper

Map your Core Data properties with ease
37 stars 16 forks source link

hyp_dictionary combine case and type for related attributes #140

Closed achirkof closed 7 years ago

achirkof commented 7 years ago

It would be great to combine several attributes, for example case for entities and type for relation in one expression

let entityJSON = entity.hyp_dictionary(.camelCase)
let entityJSON = entity.hyp_dictionary(using: .array)

to

let entityJSON = entity.hyp_dictionary(attributes: [RelationType: .array, CaseType: .camelCase])
3lvis commented 7 years ago

Looks like there are a few issues https://github.com/SyncDB/SYNCPropertyMapper/pull/141#issuecomment-261780325

3lvis commented 7 years ago

The mapping for to-many relationships was always snakeCase.