Class CBaseActiveRelation
CBaseActiveRelation is the base class for all active relations.
- CComponent
- CBaseActiveRelation
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/framework/db/ar/CActiveRecord.php
public
|
#
__construct( string $name, string $className, string $foreignKey, array $options = array() )
Constructor. |
public
|
public
string
|
$name |
|
#
name of the related object |
public
string
|
$className |
|
#
name of the related active record class |
public
mixed
|
$foreignKey |
|
#
the foreign key in this relation |
public
mixed
|
$select | '*' |
#
list of column names (an array, or a string of names separated by commas) to be selected. Do not quote or prefix the column names unless they are used in an expression. In that case, you should prefix the column names with 'relationName.'. |
public
string
|
$condition | '' |
#
WHERE clause. For |
public
array
|
$params | array() |
#
the parameters that are to be bound to the condition. The keys are parameter placeholder names, and the values are parameter values. |
public
string
|
$group | '' |
#
GROUP BY clause. For |
public
string
|
$join | '' |
#
how to join with other tables. This refers to the JOIN clause in an SQL
statement. For example, |
public
string|array
|
$joinOptions | '' |
#
property for setting post-JOIN operations such as USE INDEX. String typed value can be used with JOINs for HAS_MANY and MANY_MANY relations, while array typed value designed to be used only with MANY_MANY relations. First array element will be used for junction table JOIN and second array element will be used for target table JOIN. |
public
string
|
$having | '' |
#
HAVING clause. For |
public
string
|
$order | '' |
#
ORDER BY clause. For |