Previous Page
modSelectEager()

Solar_Sql_Model_Related_BelongsTo
newSelect()

Next Page
setNativeModel()

newSelect()

public Solar_Sql_Select newSelect ( mixed $spec )

Creates a new selection object for fetching records from this relation.

Inherited from Solar_Sql_Model_Related.

Parameters

  • (mixed) $spec: If an array, treated as params for a select statement (where, group, having, etc) for finding the native-model IDs. If a Record object, the record's primary-key is used for the native- model ID. If a Solar_Sql_Select, used as-is for finding the native- model IDs.

Returns

  • (Solar_Sql_Select)

Description

Creates a new selection object for fetching records from this relation.