[Solar-talk] The new model class discussion, some questions

Antti Holvikari anttih at gmail.com
Wed Feb 21 05:17:38 PST 2007


On 2/21/07, Antti Holvikari <anttih at gmail.com> wrote:
> Ok, so I had to brainstorm a little on how it could work. What if you
> still kept one record and a table object separate but made it so that
> a record is in the central. I'm thinking something along the lines of
> (a bag with items):
>
>     $record = Solar::factory('Vendor_Model_Bag');
>
>     // get the underlying table object
>     $table = $record->getTable()->fetchAll(...);

Crap, that should be:

    $table = $record->getTable();

-- 
Antti Holvikari <http://phphalo.com>


More information about the solar-talk mailing list