Class CActiveRelation
CActiveRelation is the base class for representing active relations that bring back related objects.
- CComponent
- CBaseActiveRelation
- CActiveRelation
Indirect known subclasses
CManyManyRelationCopyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/db/ar/CActiveRecord.php
public
|
__construct()
|
public
string
|
$joinType | 'LEFT OUTER JOIN' |
#
join type. Defaults to 'LEFT OUTER JOIN'. |
public
string
|
$on | '' |
#
ON clause. The condition specified here will be appended to the joining condition using AND operator. |
public
string
|
$alias |
|
#
the alias for the table that this relation refers to. Defaults to null, meaning the alias will be the same as the relation name. |
public
string|array
|
$with | array() |
#
specifies which related objects should be eagerly loaded when this related
object is lazily loaded. For more details about this property, see |
public
boolean
|
$together |
|
#
whether this table should be joined with the primary table. When setting this property to be false, the table associated with this relation will appear in a separate JOIN statement. If this property is set true, then the corresponding table will ALWAYS be joined together with the primary table, no matter the primary table is limited or not. If this property is not set, the corresponding table will be joined with the primary table only when the primary table is not limited. |
public
mixed
|
$scopes |
|
#
scopes to apply Can be set to the one of the following:
|
public
string
|
$through |
|
#
the name of the relation that should be used as the bridge to this relation. Defaults to null, meaning don't use any bridge. |
$className,
$condition,
$foreignKey,
$group,
$having,
$join,
$joinOptions,
$name,
$order,
$params,
$select
|