[Solar-talk] Solar_Sql_Model to DataMapper/Record/Collection
Rodrigo Moraes
rodrigo.moraes at gmail.com
Sun Jul 22 08:45:19 CDT 2007
On 7/22/07, Rodrigo Moraes wrote:
> 2. $record->save($data): should $data be just the record $_data
> property or should it be the record object itself?
correction: I meant $model->save($data).
When calling $record->save($data), $data is an optional array with
keys corresponding to model properties. Internally, it calls
$model->save($data), and this is the $data is was referring to. It
could be the internal $_data property or the record object itself.
-- rodrigo
More information about the Solar-talk
mailing list