Jira issue originally created by user zyxist:
The database access methods in Doctrine\DBAL\Connection automatically connect to the database, if the connection has not been created yet. This is not true in case of Doctrine\DBAL\Connection::query() - if we forget to connect manually, we get:
Warning: call*user_func*array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /.../Doctrine/DBAL/Connection.php on line 608
The problem is caused by the lack of
line within the method body.
Comment created by @beberlei:
Issue was closed with resolution "Fixed"