DengTao 8 years ago
parent
commit
9f4e9eec7e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      www/protected/models/DealPet.php
  2. 1 1
      www/protected/models/Kennel.php

+ 1 - 1
www/protected/models/DealPet.php

@@ -71,7 +71,7 @@ class DealPet extends MongoActiveRecord {
     ];
 
     public function __construct($scenario = 'insert') {
-        $this->setMongoDBComponent(Yii::app()->getComponent('deal'));
+        $this->setMongoDBComponent(Yii::app()->getComponent('cute'));
         parent::__construct($scenario);
     }
 

+ 1 - 1
www/protected/models/Kennel.php

@@ -78,7 +78,7 @@ class Kennel extends MongoAr {
     ];
 
     public function __construct($scenario = 'insert') {
-        $this->setMongoDBComponent(Yii::app()->getComponent('deal'));
+        $this->setMongoDBComponent(Yii::app()->getComponent('cute'));
         parent::__construct($scenario);
     }