2

我有 symfony 2.0.15 和教义 2.1.7

这是我的 deps 文件

[doctrine-common]
    git=http://github.com/doctrine/common.git
    version=2.1.4

[doctrine-dbal]
    git=http://github.com/doctrine/dbal.git
    version=2.1.7

[doctrine]
    git=http://github.com/doctrine/doctrine2.git
    version=2.1.7

[doctrine-fixtures]
    git=http://github.com/doctrine/data-fixtures.git

[DoctrineFixturesBundle]
    git=http://github.com/doctrine/DoctrineFixturesBundle.git
    target=/bundles/Symfony/Bundle/DoctrineFixturesBundle
    version=origin/2.0

[doctrine-migrations]
    git=http://github.com/doctrine/migrations.git

[DoctrineMigrationsBundle]
    git=http://github.com/doctrine/DoctrineMigrationsBundle.git
    target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle
    version=origin/2.0

但我想得到教义 2.3 。我该如何更新

4

1 回答 1

1

小心,Doctrine 2.3 不稳定

[doctrine-common]
    git=http://github.com/doctrine/common.git
    version=2.3.0-RC1

[doctrine-dbal]
    git=http://github.com/doctrine/dbal.git
    version=2.3.0-RC1

[doctrine]
    git=http://github.com/doctrine/doctrine2.git
    version=2.3.0-RC1

[doctrine-fixtures]
    git=http://github.com/doctrine/data-fixtures.git

[DoctrineFixturesBundle]
    git=http://github.com/doctrine/DoctrineFixturesBundle.git
    target=/bundles/Symfony/Bundle/DoctrineFixturesBundle

[doctrine-migrations]
    git=http://github.com/doctrine/migrations.git

[DoctrineMigrationsBundle]
    git=http://github.com/doctrine/DoctrineMigrationsBundle.git
    target=/bundles/Symfony/Bundle/DoctrineMigrationsBundle

然后更新您的供应商:

php bin/vendors.php update

我最后的建议是切换到作曲家!这是一个强大的 PHP 依赖管理系统。

于 2012-08-02T09:01:46.663 回答