Example #1
0
 /**
  * initialize Database
  */
 protected function initDatabase()
 {
     $dbConfig = (array) config("database");
     if (count($dbConfig) > 0) {
         $this->db = new Database($dbConfig);
         Model::$db = $this->db;
     }
 }
Example #2
0
 /**
  * @param array $data
  * @param bool $isNewRow
  */
 public function __construct($data = array(), $isNewRow = true)
 {
     parent::__construct($data, $isNewRow);
 }