i'm having a weird Problem with symfonys cli tool. I am trying to update my entity which i created using the cli tool (no problems there) and it throws this error.
我对symfonys cli工具有一个奇怪的问题。我正在尝试更新我使用cli工具创建的实体(没有问题)并且它会抛出此错误。
Weird thing is: The given path D:\w\Framework\AcmeBundle\Entity
is correct. The entity can be used by the framework and i don't get any errors about the path anywhere else. So the tool obviously knows the path but says it doesn't.
奇怪的是:给定的路径D:\ w \ Framework \ AcmeBundle \ Entity是正确的。该实体可以被框架使用,我不会在其他任何地方得到任何关于路径的错误。所以该工具显然知道路径,但表示它没有。
D:\w\Framework\>php app/console generate:doctrine:entities AcmeBundle:Foo
Generating entity "AcmeBundle\Entity\Foo"
[RuntimeException]
Can't find base path for "AcmeBundle\Entity\Foo"
(path: "D:\w\vendors\AcmeBundle\Entity",
destination: "D:\w\vendors\AcmeBundle\Entity").
doctrine:generate:entities [--path="..."] [--no-backup] name
Anyone know this Problem?
谁知道这个问题?
1 个解决方案
#1
I'm not familiar with symfony2 on Windows, but I think your path is not correct.
我不熟悉Windows上的symfony2,但我认为你的路径不正确。
You run the console command from this directory D:\w\Framework\
您从此目录D:\ w \ Framework \运行控制台命令
D:\w\Framework\>php app/console
But the error state this path D:\w\vendors\
但错误状态此路径D:\ w \ vendors \
(path: "D:\w\vendors\...
I guess the path should be D:\w\Framework\vendors
.
我猜路径应该是D:\ w \ Framework \ vendors。
#1
I'm not familiar with symfony2 on Windows, but I think your path is not correct.
我不熟悉Windows上的symfony2,但我认为你的路径不正确。
You run the console command from this directory D:\w\Framework\
您从此目录D:\ w \ Framework \运行控制台命令
D:\w\Framework\>php app/console
But the error state this path D:\w\vendors\
但错误状态此路径D:\ w \ vendors \
(path: "D:\w\vendors\...
I guess the path should be D:\w\Framework\vendors
.
我猜路径应该是D:\ w \ Framework \ vendors。