[Solar-talk] autocreate table

Paul M Jones pmjones at solarphp.com
Fri Aug 25 12:31:54 PDT 2006


On Aug 24, 2006, at 7:13 AM, Jeff Surgeson wrote:

>>> Can anyone let me know how to autocreate tables. I am getting the  
>>> below
>>> given error when i try to instantiate my Model.
>>
>> Uh... I don't know either when the autocreate process is triggered...
>
> As far as I know when you instantiate a data model,
>
> $this->_user = Solar::factory('Vendor_Model_User');
>
> Solar will auto create that table if it does not exist, the table  
> created is
> based on the _setup() in your model file

Jeff is exactly right here.  Thanks for shedding light in my  
absence.  :-)



--

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