[Solar-talk] Solar_Sql_Table initial rows

Paul M Jones pmjones at solarphp.com
Tue Jul 11 11:37:00 PDT 2006


On Jul 11, 2006, at 5:21 AM, Antti Holvikari wrote:

> Would it make sense to add a method to Solar_Sql_Table that user could
> implement to be able to insert some data to the table. I see it could
> run just before _autoCreate returns true. Or is there a solution for
> this already?

I had never thought of it, really.  I suppose one could override  
_autoCreate() and then insert new rows if the parent returned true.   
I don't think I've ever needed it myself, but it's an interesting  
idea; do you have suggestions on how to implement, or use-case  
narratives?



--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.   <http://solarphp.com>

Savant: The simple, elegant, and powerful solution for
templates in PHP.   <http://phpsavant.com>




More information about the solar-talk mailing list