我想要開始學習Doctrine 2.並且我正在閱讀他們的intro。我卡住試圖運行Doctrine 2沙盒中的錯誤
D:\Projects\Websites\php\Doctrine\sandbox>doskey doctrine=php d:\resourcelibrary\frameworks\doctrine\bin\doctrine.php $*
D:\Projects\Websites\php\Doctrine\sandbox>doctrine --version
Doctrine Command Line Interface version 2.0-DEV
// from here u can see that doctrine works ... i used doskey to shorten typing
D:\Projects\Websites\php\Doctrine\sandbox>doctrine orm:schema-tool:create ./entities
[RuntimeException]
Too many arguments.
orm:schema-tool:create [--dump-sql] [-h|--help] [-q|--quiet] [-v|--verbose] [-V|--version] [-a|--ansi] [-n|--no-interact
ion] command
D:\Projects\Websites\php\Doctrine\sandbox>
我認爲這是或多或少與教程完全相同的代碼?
UPDATE
我發現,從http://www.doctrine-project.org/projects/orm/download包下載沙盒甚至不具備文件夾的實體,YAML & XML文件夾!來自SVN的...我認爲onlye有DBAL包(我認爲,在Doctrine中),剩下的在lib中。結構似乎關閉...這真的是一個不可用的測試版?
哪個beta版下載可以用來開始學習Doctrine 2?
是的,我使用了全命令'PHP d也試過:\全\路徑\爲\原則\ BIN \主義.php orm:schema-tool:create。/ entities'完全相同的錯誤... – 2010-07-17 04:39:45