路径 "propel.database.connections.project.attributes" 的类型无效。预期的数组,但得到了字符串

Invalid type for path "propel.database.connections.project.attributes". Expected array, but got string

我正在尝试使用基于 schema.xml 文件的 Propel ORM 创建 SQL 模式,命令

.\vendor\bin\propel sql:build

我收到一个错误:

[Symfony\Component\Config\Definition\Exception\InvalidTypeException]
Invalid type for path "propel.database.connections.project.attributes". Expected array, but got string

这是我的 propel.xml 文件:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<config>
    <propel>
        <database>
            <connections>
                <connection id="project">
                    <adapter>mysql</adapter>
                    <classname>Propel\Runtime\Connection\ConnectionWrapper</classname>
                    <dsn>mysql:host=localhost;dbname=project</dsn>
                    <user>root</user>
                    <password></password>
                    <attributes></attributes>
                </connection>
            </connections>
        </database>
        <runtime>
            <defaultConnection>project</defaultConnection>
            <connection>project</connection>
        </runtime>
        <generator>
            <defaultConnection>project</defaultConnection>
            <connection>project</connection>
        </generator>
    </propel>
</config>

这是我的 schema.xml 文件:

<database name="project" defaultIdMethod="native">
    <table name="user" phpName="User">
        <column name="id" type="integer" size="255" required="true" primarykey="true" autoincrement="true"></column>
        <column name="username" type="varchar" size="255" required="true"></column>
        <column name="password" type="varchar" size="255" required="true"></column>
        <column name="email" type="varchar" size="255" required="true"></column>
    </table>
</database>

通过注释掉 propel.xml 中的 <attributes></attributes> 标记来修复它,如下所示:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<config>
    <propel>
        <database>
            <connections>
                <connection id="project">
                    <adapter>mysql</adapter>
                    <classname>Propel\Runtime\Connection\ConnectionWrapper</classname>
                    <dsn>mysql:host=localhost;dbname=project</dsn>
                    <user>root</user>
                    <password></password>
                    <!--
                    <attributes></attributes>
                    -->
                </connection>
            </connections>
        </database>
        <runtime>
            <defaultConnection>project</defaultConnection>
            <connection>project</connection>
        </runtime>
        <generator>
            <defaultConnection>project</defaultConnection>
            <connection>project</connection>
        </generator>
    </propel>
</config>