public function __construct($param = null) { if (is_array($param)) { parent::__construct($param); if (array_key_exists("ID", $param) && array_key_exists("CODE", $param) && array_key_exists("NAME", $param)) { $this->ID = $param["ID"]; $this->CODE = $param["CODE"]; $this->NAME = $param["NAME"]; } } else { parent::__construct($param); } }
public function __construct() { $this->isReservedName = config('database.default') === 'oracle'; parent::__construct(); }