开发者

"Missing class name" error on doctrine:build-schema

I have a project that connects to multiple databases. When I run doctrine:build-schema, I get an error that simply says "Missing class name."

Any idea what could be going on? I suspect it has something to do with the fact that I'm connecting to multiple databases since this is the only project where I'm having this problem and this is the only project where I connect to multiple databases.

Edit: I have two databases: galapagos and survey. It looks like the problem has something to do with the fact that survey has some foreign keys that reference tables in ga开发者_运维知识库lapagos. When I take away these foreign keys, build-schema works fine.


i'm no expert on Doctrine but maybe what's been happening is that galapagos relates to a class (table a mean) from survey, but galapagos is being parsed first, so when it reaches a line with something like:

foreignClass: Zaraza

It does not understand what your talking about willies :P. So , try defining both databases on a single file, or try to alter the orden in witch files are being loaded. That might help!


First, you should create the model with the following command:

php symfony doctrine:build-model

Then, construct the schema executing the following command:

php symfony doctrine:build-schema
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜