Previous Page
dump()

Solar_Example_Model_TestSolarFoo
fetch()

Next Page
fetchAll()

fetch()

public Solar_Sql_Model_Record|Solar_Sql_Model_Collection fetch ( int|array $spec )

Fetches a record or collection by primary key value(s).

Inherited from Solar_Sql_Model.

Parameters

  • (int|array) $spec: The primary key value for a single record, or an array of primary key values for a collection of records.

Returns

  • (Solar_Sql_Model_Record|Solar_Sql_Model_Collection) A record or record-set object.

Description

Fetches a record or collection by primary key value(s).