Solar_Sql_Model_Record::newRelated()
public
Solar_Sql_Model_Record|Solar_Sql_Model_Collection
Solar_Sql_Model_Record::newRelated
( string $name
, array $data = NULL
)
Create a new record/collection related to this one and returns it.
Parameters
(string)
$name
: The relation name.(array)
$data
: Initial data.
Returns
(Solar_Sql_Model_Record|Solar_Sql_Model_Collection)
Description
Create a new record/collection related to this one and returns it.