On 03/02/2011, at 11:11 PM, Dev WO wrote:

> When I look at ERXModel, I only find
> er.extensions.ERXModel.useExtendedPrototypes
> 
> I'm not sure that's what your talking about.
> 
> Is this supposed to fix the SQL generation from EntityModeler or prevent the 
> bug at runtime (when there's no external name for parent entity)?
> 
> Xavier
> 
> On 3 févr. 2011, at 12:39, Mike Schrag wrote:
> 
>> I believe you have to opt in to erxmodel (which gives you erxentity).

You might want to try:
er.extensions.ERXModel.defaultEOEntityClassName=com.webobjects.eoaccess.ERXEntity

Take a look at ERXModel._addEntityWithPropertyList 

- Essentially, ERXExtensions.defaultModelGroup is ERXModelGroup
- ERXModelGroup.addModelWithPathURL:
  if (er.extensions.ERXModelGroup.patchModelsOnLoad is true) then
    adds a new ERXModelGroup.Model which extends ERXModel

  else if (er.extensions.ERXModelGroup.modelClassName != null) then
    your model class should extend ERXModel

  else you get ERXModel

- ERXModel._addEntityWithPropertyList should give you an ERXEntity by default.

with regards,
-

Lachlan Deck

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to