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