Doctrine 2 orm:schema-tool:create give运行时异常:参数太多 [英] Doctrine 2 orm:schema-tool:create giving Runtime Exception: Too many arguments
问题描述
共同
从 http://github.com/doctrine/common
。将包放在适当的文件夹中... D:\ResourceLibrary\Frameworks\Doctrine\lib\Doctrine \ORM
D:\ResourceLibrary\Frameworks\Doctrine\lib\vendor\doctrine-common\lib\Doctrine\Common
D:\ResourceLibrary\Frameworks \Doctrine\lib\vendor\doctrine-dbal\lib\Doctrine\DBAL
从沙盒文件夹我试图得到版本看看是否一切正常...
D:\ResourceLibrary \Frameworks\Doctrine\tools\sandbox> php doctrine.php -V
教义命令行界面版本2.0.0BETA4-DEV
看起来不错。
D:\ResourceLibrary\Frameworks\Doctrine\tools\sandbox> php doctrine.php orm:schema-工具:创建./Entities
[RuntimeException]
参数太多。
orm:schema-tool:create [--dump-sql] [-h | --help] [-q | --quiet] [-v | --verbose] [-V | --version] [-c | --color] [-n | --no-interaction]命令
然后失败...
我如何解决这个问题?
这是本教程中已知的问题。尝试删除错误报告中建议的./Entities参数:
http://www.doctrine-project.org/jira/browse/DWEB-53?page=com.atlassian.jira.ext.fisheye%3Afisheye- issuepanel 。
i am trying out the Doctrine 2 sandbox. downloaded the main Doctrine 2 ORM from http://github.com/doctrine/doctrine2 the dbal
from http://github.com/doctrine/dbal and common
from http://github.com/doctrine/common
. placed the packages in approparate folders ...
D:\ResourceLibrary\Frameworks\Doctrine\lib\Doctrine\ORM
D:\ResourceLibrary\Frameworks\Doctrine\lib\vendor\doctrine-common\lib\Doctrine\Common
D:\ResourceLibrary\Frameworks\Doctrine\lib\vendor\doctrine-dbal\lib\Doctrine\DBAL
from the sandbox folder i tried to get the version to see if everything works ok ...
D:\ResourceLibrary\Frameworks\Doctrine\tools\sandbox>php doctrine.php -V
Doctrine Command Line Interface version 2.0.0BETA4-DEV
looks ok.
D:\ResourceLibrary\Frameworks\Doctrine\tools\sandbox>php doctrine.php orm:schema-tool:create ./Entities
[RuntimeException]
Too many arguments.
orm:schema-tool:create [--dump-sql] [-h|--help] [-q|--quiet] [-v|--verbose] [-V|--version] [-c|--color] [-n|--no-interaction] command
then fails ...
how can i fix this?
This is a known problem with the tutorial. Try removing the ./Entities argument as suggested in the bug report: http://www.doctrine-project.org/jira/browse/DWEB-53?page=com.atlassian.jira.ext.fisheye%3Afisheye-issuepanel.
这篇关于Doctrine 2 orm:schema-tool:create give运行时异常:参数太多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!