Skip to content

Multiple options in database configuration not supported #4

@siciarek

Description

@siciarek

$di->set('db', function () use ($di) {
return new \Phalcon\Db\Adapter\Pdo\Mysql(array(
'host' => $di->get('config')->database->host,
'username' => $di->get('config')->database->username,
'password' => $di->get('config')->database->password,
'dbname' => $di->get('config')->database->dbname,
'charset' => $di->get('config')->database->charset,
'options' => array(
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES "utf8"',
PDO::ATTR_CASE => PDO::CASE_LOWER
)
));
});

here is my database config

When debug panel is opened, array to string convertion error occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions