[Solar-talk] _PostCreate _autoCreate ver0.25 ver0.26?

Jeff Surgeson webdev at 3hex.com
Mon Feb 5 04:33:46 PST 2007


On Monday 05 February 2007 14:14, Rodrigo Moraes wrote:
> There's a new configuration key in Solar_Sql_Table, v. 0.26, to define if
> the tables should be created ('create' => true). By default it is true, so
> your tables should be created normally. Anyway, try to set it to true
> manually and see what happens. I have no other clues.
>
> And, by the way: set 'create' to false once you got your tables created,
> because it will avoid some expensive database operations on each request
> (well, not *that* expensive, but in my case they were always on top of the
> most expensive db calls).

I tried that in the beginning but made no diff, I have this in my config

$config['Solar_Sql_Table']['autoconnect']       = true;
$config['Solar_Sql_Table']['create']            = true;

but it makes no difference, the only way I can get it to autoCreate and run 
_PostCreate is to stick a call to _connect in the __construct method of 
Solar_Sql_Table.

So Antti is correct in saying it has something to do with connect just don't 
know what? Cant see where Paul does anything different in Bookmarks App now 
to autoCreate tables than he did before! I am also assuming that Bookmarks 
still autoCreates?

.::.
Jeff
-- 
....::::....
Jeff Surgeson
3hex WebDev


More information about the solar-talk mailing list