Ошибка при работе с Propel в PHP
Приветствую. Пытаюсь использовать эту библиотеку вне какого-нибудь фреймворка. Вот код:
require_once 'vendor/autoload.php';
require_once 'application/models/UserQuery.php';
var_dump(UserQuery::create()->findOneByIsEmailConfirmed(1));
Fatal error: Uncaught exception 'Propel\Runtime\Exception\RuntimeException' with message 'No connection defined for database "default". Did you forget to define a connection or is it wrong written?' ...
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config>
<propel>
<paths>
<phpDir>application/models</phpDir>
</paths>
<database>
<connections>
<connection id="default">
<adapter>mysql</adapter>
<classname>Propel\Runtime\Connection\ConnectionWrapper</classname>
<dsn>mysql:host=localhost;dbname=typing</dsn>
<user>root</user>
<password></password>
<settings>
<charset>utf8</charset>
</settings>
</connection>
</connections>
</database>
<runtime>
<defaultConnection>default</defaultConnection>
<connection>default</connection>
</runtime>
<generator>
<defaultConnection>default</defaultConnection>
<connection>default</connection>
</generator>
</propel>
</config>