Browse Source

ActiveRecord::tableName() comment fixed

tags/2.0.0-beta
Alexander Kochetov 11 years ago
parent
commit
fba0e04365
  1. 5
      framework/yii/db/ActiveRecord.php

5
framework/yii/db/ActiveRecord.php

@ -177,8 +177,9 @@ class ActiveRecord extends BaseActiveRecord
/** /**
* Declares the name of the database table associated with this AR class. * Declares the name of the database table associated with this AR class.
* By default this method returns the class name as the table name by calling [[Inflector::camel2id()]] * By default this method returns the class name as the table name by calling [[Inflector::camel2id()]]
* with prefix 'tbl_'. For example, 'Customer' becomes 'tbl_customer', and 'OrderItem' becomes * with prefix [[DbConnection::tablePrefix]]. For example if [[DbConnection::tablePrefix]] is 'tbl_',
* 'tbl_order_item'. You may override this method if the table is not named after this convention. * 'Customer' becomes 'tbl_customer', and 'OrderItem' becomes 'tbl_order_item'. You may override this method
* if the table is not named after this convention.
* @return string the table name * @return string the table name
*/ */
public static function tableName() public static function tableName()

Loading…
Cancel
Save