[eluser]broofa[/eluser]
[quote author="TheJim" date="1277520776"][quote author="broofa" date="1277498105"]Quick followup to my previous post...
It seems that some of these errors are a result of $CI->config being undefined when _assign_libraries() is called by the DataMapper constructor. Any idea what might be causing that?
- rwk[/quote]
That's odd. I think you mentioned using CI 1.7.2 in your earlier post, which I also use, and which I believe (though I could be wrong) Phil uses as well. So I wouldn't think it has to do with your version of CI.
Could you be trying to instantiate DMZ objects before CI is fully initialized? Say, in a pre-system hook or in a controller's constructor without first calling the parent's constructor. Anything like that?[/quote]
I found the problem. I incorrectly implemented a __set method in my DataMapper subclass which was causing the DM reference to the $CI->config object (set in _assign_libraries) to be set to null. Thus producing the "non-object" errors I kept seeing elsewhere.
So... pretty much my own fault after all. Shoulda known I guess, but in my defense this wasn't exactly the most obvious bug. Regardless, my apologies for bothering folks - everything's working just peachy now!