RVijay007 / cblmodelgenerator

A CLI to generate CouchbaseLite model object files from a Core Data Model file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parenting mechanism is dependent on correct order in .xcdatamodeld file, error if child is defined before parent

RVijay007 opened this issue · comments

Sometimes, depending on the way the model is constructed, child entities are defined earlier than when their parents are defined. This messes with the detection of whether the entity is a CBLNestedModel or CBLModel child. Will need to fix by running through all entities after parsing and rechecking whether they should have dynamic properties or not.

Fixed this issue.