Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • ActionToRecord
  • CActiveFinder
  • CActiveRecord
  • CActiveRecordBehavior
  • CActiveRecordMetaData
  • CActiveRelation
  • CBaseActiveRelation
  • CBelongsToRelation
  • CHasManyRelation
  • CHasOneRelation
  • CJoinElement
  • CJoinQuery
  • CManyManyRelation
  • ContactsNameBehavior
  • CStatElement
  • CStatRelation
  • ERememberFiltersBehavior
  • FileSystemObjectBehavior
  • MobileLayouts
  • RecordAliases
  • RelationshipsBehavior
  • TopicReplies
  • X2ActiveRecord
  • X2Flow
  • Overview
  • Package
  • Class
  • Tree

Class CActiveRecordMetaData

CActiveRecordMetaData represents the meta-data for an Active Record class.

Package: system\db\ar
Copyright: 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
Methods summary
public
# __construct( CActiveRecord $model )

Constructor.

Constructor.

Parameters

$model
CActiveRecord
$model the model instance

Throws

CDbException
if specified table for active record class cannot be found in the database
public
# addRelation( string $name, array $config )

Adds a relation.

Adds a relation.

$config is an array with three elements: relation type, the related active record class and the foreign key.

Parameters

$name
string
$name $name Name of the relation.
$config
array
$config $config Relation parameters.

Throws

CDbException

Since

1.1.2
public boolean
# hasRelation( string $name )

Checks if there is a relation with specified name defined.

Checks if there is a relation with specified name defined.

Parameters

$name
string
$name $name Name of the relation.

Returns

boolean

Since

1.1.2
public
# removeRelation( string $name )

Deletes a relation with specified name.

Deletes a relation with specified name.

Parameters

$name
string
$name $name

Since

1.1.2
Properties summary
public CDbTableSchema $tableSchema
#

the table schema information

the table schema information

public array $columns
#

table columns

table columns

public array $relations array()
#

list of relations

list of relations

public array $attributeDefaults array()
#

attribute default values

attribute default values

API documentation generated by ApiGen 2.8.0