1 | <?php |
||
12 | class CiiMigrateCommand extends MigrateCommand |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * @var array $dsn |
||
16 | * The DSN and CDbConnectionString information from CWebApplication |
||
17 | */ |
||
18 | public $dsn = array(); |
||
19 | |||
20 | /** |
||
21 | * This is our overloaded getDbConnection, allowing us to tell yii what our db connection is |
||
22 | * without it having to go through |
||
23 | */ |
||
24 | public function getDbConnection() |
||
30 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.