Implements the foreign key relationship (TActiveRecord::BELONGS_TO) between the source objects and the related foreign object. Consider the entity relationship between a Team and a Player.
The team object may be fetched as follows.
Located in /Data/ActiveRecord/Relations/TActiveRecordBelongsTo.php (line 71)
TActiveRecordRelation | --TActiveRecordBelongsTo
Get the foreign key index values from the results and make calls to the database to find the corresponding foreign objects.
Sets the foreign objects to the given property on the source object.
Updates the source object first.
Inherited From TActiveRecordRelation
TActiveRecordRelation::__construct()
TActiveRecordRelation::collectForeignObjects()
TActiveRecordRelation::fetchResultsInto()
TActiveRecordRelation::findForeignKeys()
TActiveRecordRelation::findForeignObjects()
TActiveRecordRelation::getContext()
TActiveRecordRelation::getCriteria()
TActiveRecordRelation::getIndexValues()
TActiveRecordRelation::getObjectHash()
TActiveRecordRelation::getRelationForeignKeys()
TActiveRecordRelation::getSourceRecord()
TActiveRecordRelation::populateResult()
TActiveRecordRelation::setObjectProperty()
TActiveRecordRelation::setResultCollection()
TActiveRecordRelation::__call()
Documentation generated on Mon, 25 Jun 2012 14:37:12 +0200 by phpDocumentor 1.4.3