0 -[TFForm awakeFromInitializer]1 -[CBLModel initWithDocument:orDatabase:]2 +[CBLModel modelForDocument:]3 -[CBLModel modelWithDocID:forProperty:ofClass:]4 -[CBLModel getModelProperty:]5 -[LinkedFormViewController numberOfRowsInTableView:]
if (self.field.linkToForm) {
// do some stuff
} else {
// do some other stuff
}
@property (nonatomic, weak) TFForm *linkToForm;
On Oct 5, 2016, at 9:06 PM, Brendan Duddridge <bren...@gmail.com> wrote:The call to self.field.linkToForm is triggering the creation of the TFForm instance and calling my awakeFromInitializer method.
What’s the value of the JSON “linkToForm" property in the document?- If it’s nil, then the Obj-C .linkToForm property should be nil.
- If it’s not nil, then it will instantiate (or reuse) a model on a document with that ID. (Yes, even if it doesn’t exist in the db yet)