## [System.Data.ActiveRecord.Relations] element index

### Package indexes

- System.Caching
- default
- System.Collections
- System.Data.ActiveRecord
- System.Data.ActiveReecord.Scaffold.InputBuilder
- System.Data.ActiveRecord.Scaffold
- System.Data.Common
- System.Data.Common.Pgsql
- System.Data.Common.Mssql
- System.Data.Common.Mysql
- System.Data.Commom.Sqlite
- System.Data.Common.Oracle
- System.Data.Common.Sqlite
- System.Data.DataGateway
- System.Data.SqlMap.Configuration
- System.Data.SqlMap.Statements
- System.Data.SqlMap
- System.Data
- System.Exceptions
- System.I18N
- System
- System.IO
- System.Security
- System.Util
- System.Web.Services
- System.Web
- System.Web.UI.ActiveControls
- System.Web.UI
- System.Web.UI.WebControls.assets
- System.Web.UI.WebControls
- System.Xml

All elements
_
top

__call
  TActiveRecordRelation::__call() in TActiveRecordRelation.php
  Dispatch the method calls to the source record finder object. When an instance of TActiveRecord or an array of TActiveRecord is returned the corresponding foreign objects are also fetched and assigned.
__construct
  TActiveRecordRelationContext::__construct() in TActiveRecordRelationContext.php
__construct
  TActiveRecordRelation::__construct() in TActiveRecordRelation.php

c
top

collectForeignObjects
  TActiveRecordRelation::collectForeignObjects() in TActiveRecordRelation.php
collectForeignObjects
  TActiveRecordBelongsTo::collectForeignObjects() in TActiveRecordBelongsTo.php
  Get the foreign key index values from the results and make calls to the database to find the corresponding foreign objects.
collectForeignObjects
  TActiveRecordHasManyAssociation::collectForeignObjects() in TActiveRecordHasManyAssociation.php
  Get the foreign key index values from the results and make calls to the database to find the corresponding foreign objects using association table.
collectForeignObjects
  TActiveRecordHasMany::collectForeignObjects() in TActiveRecordHasMany.php
  Get the foreign key index values from the results and make calls to the database to find the corresponding foreign objects.
collectForeignObjects
  TActiveRecordHasOne::collectForeignObjects() in TActiveRecordHasOne.php
  Get the foreign key index values from the results and make calls to the database to find the corresponding foreign objects.
createCommand
  TActiveRecordHasManyAssociation::createCommand() in TActiveRecordHasManyAssociation.php
createFkObject
  TActiveRecordHasManyAssociation::createFkObject() in TActiveRecordHasManyAssociation.php

f
top

fetchForeignObjects
  TActiveRecordHasManyAssociation::fetchForeignObjects() in TActiveRecordHasManyAssociation.php
  Fetches the foreign objects using TActiveRecord::findAllByIndex()
fetchResultsInto
  TActiveRecordRelation::fetchResultsInto() in TActiveRecordRelation.php
  Fetch results for current relationship.
findForeignKeys
  TActiveRecordRelation::findForeignKeys() in TActiveRecordRelation.php
  Returns foreign keys in $fromRecord with source column names as key and foreign column names in the corresponding $matchesRecord as value.
findForeignObjects
  TActiveRecordRelation::findForeignObjects() in TActiveRecordRelation.php
  Fetches the foreign objects using TActiveRecord::findAllByIndex()

g
top

getAssociationJoin
  TActiveRecordHasManyAssociation::getAssociationJoin() in TActiveRecordHasManyAssociation.php
  SQL inner join for M-N relationship via association table.
getAssociationTable
  TActiveRecordRelationContext::getAssociationTable() in TActiveRecordRelationContext.php
getAssociationTable
  TActiveRecordHasManyAssociation::getAssociationTable() in TActiveRecordHasManyAssociation.php
getAssociationTableCommandBuilder
  TActiveRecordHasManyAssociation::getAssociationTableCommandBuilder() in TActiveRecordHasManyAssociation.php
getCommandBuilder
  TActiveRecordHasManyAssociation::getCommandBuilder() in TActiveRecordHasManyAssociation.php
getCondition
  TActiveRecordRelationContext::getCondition() in TActiveRecordRelationContext.php
getContext
  TActiveRecordRelation::getContext() in TActiveRecordRelation.php
getCriteria
  TActiveRecordRelation::getCriteria() in TActiveRecordRelation.php
getFkField
  TActiveRecordRelationContext::getFkField() in TActiveRecordRelationContext.php
getForeignCommandBuilder
  TActiveRecordHasManyAssociation::getForeignCommandBuilder() in TActiveRecordHasManyAssociation.php
getForeignRecordClass
  TActiveRecordRelationContext::getForeignRecordClass() in TActiveRecordRelationContext.php
getForeignRecordFinder
  TActiveRecordRelationContext::getForeignRecordFinder() in TActiveRecordRelationContext.php
getForeignTable
  TActiveRecordHasManyAssociation::getForeignTable() in TActiveRecordHasManyAssociation.php
getIndexValues
  TActiveRecordRelation::getIndexValues() in TActiveRecordRelation.php
  Obtain the foreign key index values from the results.
getObjectHash
  TActiveRecordRelation::getObjectHash() in TActiveRecordRelation.php
getParameters
  TActiveRecordRelationContext::getParameters() in TActiveRecordRelationContext.php
getProperty
  TActiveRecordRelationContext::getProperty() in TActiveRecordRelationContext.php
getPropertyValue
  TActiveRecordRelationContext::getPropertyValue() in TActiveRecordRelationContext.php
getRelationForeignKeys
  TActiveRecordHasMany::getRelationForeignKeys() in TActiveRecordHasMany.php
getRelationForeignKeys
  TActiveRecordRelationContext::getRelationForeignKeys() in TActiveRecordRelationContext.php
getRelationForeignKeys
  TActiveRecordBelongsTo::getRelationForeignKeys() in TActiveRecordBelongsTo.php
getRelationForeignKeys
  TActiveRecordHasManyAssociation::getRelationForeignKeys() in TActiveRecordHasManyAssociation.php
getRelationForeignKeys
  TActiveRecordRelation::getRelationForeignKeys() in TActiveRecordRelation.php
getRelationForeignKeys
  TActiveRecordHasOne::getRelationForeignKeys() in TActiveRecordHasOne.php
getRelationHandler
  TActiveRecordRelationContext::getRelationHandler() in TActiveRecordRelationContext.php
  Creates and return the TActiveRecordRelation handler for specific relationships.
getRelationType
  TActiveRecordRelationContext::getRelationType() in TActiveRecordRelationContext.php
getSourceColumns
  TActiveRecordHasManyAssociation::getSourceColumns() in TActiveRecordHasManyAssociation.php
getSourceRecord
  TActiveRecordRelationContext::getSourceRecord() in TActiveRecordRelationContext.php
getSourceRecord
  TActiveRecordRelation::getSourceRecord() in TActiveRecordRelation.php
getSourceTable
  TActiveRecordHasManyAssociation::getSourceTable() in TActiveRecordHasManyAssociation.php

h
top

hasAssociationTable
  TActiveRecordRelationContext::hasAssociationTable() in TActiveRecordRelationContext.php
hasFkField
  TActiveRecordRelationContext::hasFkField() in TActiveRecordRelationContext.php
hasRecordRelation
  TActiveRecordRelationContext::hasRecordRelation() in TActiveRecordRelationContext.php

i
top

isEmptyFkObject
  TActiveRecordRelationContext::isEmptyFkObject() in TActiveRecordRelationContext.php

p
top

populateResult
  TActiveRecordRelation::populateResult() in TActiveRecordRelation.php
  Populate the results with the foreign objects found.

s
top

setObjectProperty
  TActiveRecordRelation::setObjectProperty() in TActiveRecordRelation.php
  Sets the foreign objects to the given property on the source object.
setObjectProperty
  TActiveRecordHasOne::setObjectProperty() in TActiveRecordHasOne.php
  Sets the foreign objects to the given property on the source object.
setObjectProperty
  TActiveRecordBelongsTo::setObjectProperty() in TActiveRecordBelongsTo.php
  Sets the foreign objects to the given property on the source object.
setResultCollection
  TActiveRecordRelation::setResultCollection() in TActiveRecordRelation.php
  Populates the result array with foreign objects (matched using foreign key hashed property values).

t
top

TActiveRecordBelongsTo.php
  TActiveRecordBelongsTo.php in TActiveRecordBelongsTo.php
TActiveRecordHasManyAssociation.php
  TActiveRecordHasManyAssociation.php in TActiveRecordHasManyAssociation.php
TActiveRecordHasMany.php
  TActiveRecordHasMany.php in TActiveRecordHasMany.php
TActiveRecordHasOne.php
  TActiveRecordHasOne.php in TActiveRecordHasOne.php
TActiveRecordRelationContext.php
  TActiveRecordRelationContext.php in TActiveRecordRelationContext.php
TActiveRecordRelation.php
  TActiveRecordRelation.php in TActiveRecordRelation.php
TActiveRecordBelongsTo
  TActiveRecordBelongsTo in TActiveRecordBelongsTo.php
  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.
TActiveRecordHasMany
  TActiveRecordHasMany in TActiveRecordHasMany.php
  Implements TActiveRecord::HAS_MANY relationship between the source object having zero or more foreign objects. Consider the entity relationship between a Team and a Player.
TActiveRecordHasManyAssociation
  TActiveRecordHasManyAssociation in TActiveRecordHasManyAssociation.php
  Implements the M-N (many to many) relationship via association table.
TActiveRecordHasOne
  TActiveRecordHasOne in TActiveRecordHasOne.php
  TActiveRecordHasOne models the object relationship that a record (the source object) property is an instance of foreign record object having a foreign key related to the source object. The HAS_ONE relation is very similar to the HAS_MANY relationship (in fact, it is equivalent in the entities relationship point of view).
TActiveRecordRelation
  TActiveRecordRelation in TActiveRecordRelation.php
  Base class for active record relationships.
TActiveRecordRelationContext
  TActiveRecordRelationContext in TActiveRecordRelationContext.php
  TActiveRecordRelationContext holds information regarding record relationships such as record relation property name, query criteria and foreign object record class names.

u
top

updateAssociatedRecords
  TActiveRecordRelationContext::updateAssociatedRecords() in TActiveRecordRelationContext.php
updateAssociatedRecords
  TActiveRecordHasOne::updateAssociatedRecords() in TActiveRecordHasOne.php
  Updates the associated foreign objects.
updateAssociatedRecords
  TActiveRecordHasManyAssociation::updateAssociatedRecords() in TActiveRecordHasManyAssociation.php
  Updates the associated foreign objects.
updateAssociatedRecords
  TActiveRecordHasMany::updateAssociatedRecords() in TActiveRecordHasMany.php
  Updates the associated foreign objects.
updateAssociatedRecords
  TActiveRecordBelongsTo::updateAssociatedRecords() in TActiveRecordBelongsTo.php
  Updates the source object first.