Example #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if ($this->defaultSchema === null) {
         $this->defaultSchema = strtoupper($this->db->username);
     }
 }
Example #2
0
 /**
  *
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->db->slavePdo->setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL);
     if (isset($this->defaultSchema)) {
         $this->db->createCommand('SET SCHEMA ' . $this->quoteSimpleTableName($this->defaultSchema))->execute();
     }
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->db->enableSavepoint = false;
 }
Example #4
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
 }