edgardmessias / yii2-ibm-db2

This extension adds IBM DB2 database engine extension for the Yii framework 2.0.
Other
7 stars 6 forks source link

Undefined class constant 'self::TYPE_CHAR' #3

Closed bobolone7 closed 8 years ago

bobolone7 commented 8 years ago

Apache/2.4.6 (CentOS) PHP/7.0.5 Yii Framework/2.0.7

$ris = \common\models\Amministratore::find()->one(); var_dump($ris); I get that error I'm connecting via ODBC to an iSeries (I'm already using the same configuration on another app written without yii2) If I use $connection = Yii::$app->getDb(); $command = $connection->createCommand(" SELECT * FROM GV6_AAA.NNNN"); $result = $command->queryAll(); It works fine

jose-acosta-repo commented 8 years ago

I am receiving the same error. Any help would be greatly appreciated

bobolone7 commented 8 years ago

@midcoreadmin in edgardmessias\db\ibm\db2\Schema add const TYPE_CHAR = 30;

edgardmessias commented 8 years ago

The problem is Yii2 version, 2.0.8 is not released. I make changes to fixe this.

edgardmessias commented 8 years ago

Fixed in 1.2.1