Re: Stumped on "Attempt to insert null object...." when connecting to DB
Lachlan Deck <[email protected]> Sat, 21 Mar 2009 11:40:24 +1100
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
On 21/03/2009, at 11:34 AM, Lachlan Deck wrote: > On 21/03/2009, at 11:00 AM, Lon Varscsak wrote: > >> I've never done anything special with erprototypes, but it is in my >> other >> projects and not causing any issues. However, I did just remove it >> (the >> ERPrototypes framework) from my project and the error goes away! >> So you did >> solve the issue...I just don't get what's different...but I'm not >> sure that >> I care now. :) >> Thanks for your time, > > I was under the impression that erprototypes (and any prototypes for > that matter) shouldn't have a connection dict. > > Have you set this property? > er.extensions.ERXModelGroup.prototypeModelNames=foo,bar,erprototypes You can additionally use properties: dbConnectUserGLOBAL=user dbConnectPasswordGLOBAL=pass dbConnectPluginGLOBAL=Sybase #dbConnectURLGLOBAL=url and customise as needed: ModelA.URL=urlA ModelA.DBUser=userA ModelA.DBPassword=passA ModelA.DBPlugin=Postgresql with regards, -- Lachlan Deck