From d82b38531cb15b96cab7c8dd246d5dda3c13f484 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Thu, 9 Jan 2014 07:36:39 +0400 Subject: [PATCH] DbConnection::tablePrefix default value added --- framework/yii/db/Connection.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/yii/db/Connection.php b/framework/yii/db/Connection.php index 4a8571e..9637087 100644 --- a/framework/yii/db/Connection.php +++ b/framework/yii/db/Connection.php @@ -219,10 +219,9 @@ class Connection extends Component /** * @var string the common prefix or suffix for table names. If a table name is given * as `{{%TableName}}`, then the percentage character `%` will be replaced with this - * property value. For example, `{{%post}}` becomes `{{tbl_post}}` if this property is - * set as `"tbl_"`. + * property value. For example, `{{%post}}` becomes `{{tbl_post}}`. */ - public $tablePrefix; + public $tablePrefix = 'tbl_'; /** * @var array mapping between PDO driver names and [[Schema]] classes. * The keys of the array are PDO driver names while the values the corresponding