Solar_Sql_Model_Related_ToOne::fetch()
public
object
Solar_Sql_Model_Related_ToOne::fetch
( mixed $spec
)
Fetches the related record or collection for a native ID or record.
Inherited from Solar_Sql_Model_Related.
Parameters
(mixed)
$spec
: If a scalar, treated as the native primary key value; if an array or record, retrieves the native primary key value from it.
Returns
(object) The related record or collection object.
Description
Fetches the related record or collection for a native ID or record.