[Solar-talk] Current Model Structure
Rodrigo Moraes
rodrigo.moraes at gmail.com
Tue Nov 6 08:35:52 CST 2007
On Nov 6, 2007 12:12 PM, Kilbride, James P. wrote:
> Thought you just added Solar_Sql to the config(which I did) but I get this
> error:
Hi,
There are just a few objects that need to be registered for lazy
loading, and Solar_Sql is one of them. You will notice this problem
when the exception message contains something like 'Object with name
'xxx' not in registry.'.
To connect to sql, you have to add a 'sql' key to registry, so a
Solar_Sql object will be initialized when needed. In Solar 0.28, you
would add this to your app _setup():
<?php
if (! Solar::isRegistered('sql') {
Solar::register('sql', 'Solar_Sql');
}
?>
-- rodrigo
More information about the Solar-talk
mailing list