Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small defect fixed for when the base class is from an external library and a model has inheritance #136

Merged
merged 1 commit into from Jan 14, 2013

Conversation

ghost
Copy link

@ghost ghost commented Nov 15, 2012

Example, execution from a build phase script

mogenerator \
    -m "${modelPath}.xcdatamodeld/${modelVersion}" \
    --template-var arc=true \
    --includeh ${outDir}/${modelName}Model.h \
    --base-class GVCManagedObject \
    --base-class-import "<GVCCoreData/GVCCoreData.h>" \
    --machine-dir $outMachineDir \
    --human-dir $outDir

The model includes hierarchy like

Type
+--- SimpleType
+--- ComplexType

Type inherits from GVCManagedObject, which is in the GVCCoreData framework (static lib), but SimpleType and ComplexType need to import Type.h This patch fixes the issue where the subclasses did not import the super entity when it is local to the project.

rentzsch added a commit that referenced this pull request Jan 14, 2013
Small defect fixed for when the base class is from an external library and a model has inheritance
@rentzsch rentzsch merged commit 21465eb into rentzsch:master Jan 14, 2013
ddrccw pushed a commit to ddrccw/mogenerator that referenced this pull request Jan 20, 2014
Small defect fixed for when the base class is from an external library and a model has inheritance
@rentzsch rentzsch removed the new label Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant