Merge branch 'feature/RM-3339_IndependentDBSchemaNumber_2' into 'master'

Feature/rm 3339 independent db schema number 2

RM-3339 - Independent Community and Enterprise db-schema numbers

Unit tests were failing because customModelService.getCustomModel(DYN_MODEL_NAME) returns null if the model node ref doesn't have the ContentModel.PROP_MODEL_NAME property which is added at transaction commit when the model is compiled. Both customModelService.getCustomModelByUri(DYN_SC_URI) and customModelService.getModelNodeRef(DYN_MODEL_NAME) will return the model instance even if the model is not compiled. We should use one of these methods to avoid defining the same custom model in the same transaction.

See merge request !323
This commit is contained in:
Tuna Aksoy
2016-07-13 11:22:40 +01:00

Diff Content Not Available