Undefined index: COMMENTS
08:43 27 Dec 2019

Basically i want to get column listings and types I’m using $this->getConnection()->getSchemaBuilder()->getColumnListing(‘table’); To get column listing and it’s working without any problem, however when i tried to get column type using

$this->getConnection()->getSchemaBuilder()->getColumnType(‘table’,’column’);

It didn’t work at first, then i installed dbal package now i am getting this error

Undefined index: COMMENTS Vendor\doctrine\dbal\lib\Doctrine\DBAL\Schema\OracleSchemaManager.php:402

Public function listTableDetails($tableName):table
{
    $table=parent::listTableDetails($tableName);
    $sql = $platform->getListTableCommentSQL($tableName);
    $tableOptions=$this->_conn->fetchAssoc($sql);
    $table->addOptions(‘comment’, $tableOptions[‘COMMENTS’]);

    return table;
} 

I have no clue what’s wrong, comments is not anything in my db!!!

php laravel oracle-database laravel-5 dbal