hprange/wounit — pull request #27 by kierankelleher (2012-05-13 21:40:22+00:00)
Title: Set ERExtensions as the EOModelGroup class delegate

When ERXExtensions (principal class) loads in a Wonder app, it sets itself as the class delegate for WOModelGroup such that EOModelGroup.defaultGroup() method is delegated to ERXExtensions. This in turn will enable the use of Extended Prototypes.

Along with this change, properties need to be set before the model loads for a test:
er.extensions.ERXModelGroup.modelClassName = com.webobjects.eoaccess.ERXModel
er.extensions.ERXModel.useExtendedPrototypes = true
er.extensions.ERXModelGroup.flattenPrototypes = false

Without this patch, entities depending on the use of extended prototypes will not be initialized properly.

Henrique, if you think this should be implemented some other way, then by all means do so.