Doctrine 2 orm:schema-tool:create give运行时异常:参数太多 [英] Doctrine 2 orm:schema-tool:create giving Runtime Exception: Too many arguments

查看:157
本文介绍了Doctrine 2 orm:schema-tool:create give运行时异常:参数太多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试Doctrine 2沙箱。从 http://github.com/doctrine/doctrine2 下载了主要的Doctrine 2 ORM,<$ c来自 http://github.com/doctrine/dbal dbal >和共同 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆