Skip to content

entityPrimaryKeyInjectionBlock with AFNetworking 2.0  #56

@iandundas

Description

@iandundas

Is this implemented? In the blog post describing the AF2.0 way of working (which I'm using), you state:

However, some features of MMRecord are not supported, such as pagination, MMRecord request options and custom response blocks. If any of these missing features seem important to you, please submit a pull request or open an issue and we will investigate supporting them in the future.

So I don't think you're mentioning primary key injection as being unimplemented, however that entire region of code in MMRecord never seems get called after setting a entityPrimaryKeyInjectionBlock on my entity.

Maybe I'm doing something wrong?

MMRecordOptions *options = [Transaction defaultOptions];

options.entityPrimaryKeyInjectionBlock = ^id(NSEntityDescription *entity,
        NSDictionary *dictionary,
        MMRecordProtoRecord *parentProtoRecord) {

    NSLog(@"Here is never reached :( ");

    return nil;
};

[Transaction setOptions:options];

just wondering if I'm mistaken. I'll dig in now too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions