|
Previous Page |
Solar_Sql_Model_Related_HasMany |
Next Page |
fetchObject()
public
Solar_Sql_Model_Record|Solar_Sql_Model_Collection
fetchObject (
array|Solar_Sql_Model_Record $spec,
int $page default NULL,
array $bind default NULL
)
Fetches foreign data as a record or collection object.
Inherited from Solar_Sql_Model_Related.
Parameters
- (array|Solar_Sql_Model_Record)
$spec: The specification for the native selection. If an array, treated as selection criteria; if a record object, uses the primary key from that record. - (int)
$page: For to-many associations, the page-number of records to fetch (default null, which fetches all records). Ignored by to-one associations. Paging is based on the related model's$_pagingproperty. - (array)
$bind: Key-value pairs to bind to the select.
Returns
- (Solar_Sql_Model_Record|Solar_Sql_Model_Collection) A record or collection object.
Description
Fetches foreign data as a record or collection object.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- _exception()
- _fixForeignKey()
- _fixRelatedCol()
- _modSelect()
- _modSelectEager()
- _setCols()
- _setForeignClass()
- _setForeignModel()
- _setRelated()
- _setRelatedThrough()
- _setSelect()
- _setType()
- apiVersion()
- dump()
- fetchArray()
- fetchObject()
- getModel()
- load()
- locale()
- modSelectCountPages()
- modSelectEager()
- newSelect()
- setNativeModel()
- toArray()