开发者

symfony 1.4: doctrine build model warning

I copied my sources from my lokal dev (everything works fine) to my repository and from there I did a checkout on my remote dev.

Now when I try to build everything I get this error:

devel:/var/www/myproject# ./symfony doc:build-model

doctrine generating model classes file+ /tmp/doctrine_schema_48726.yml

Warning: file_get_contents(/var/www/mypro开发者_运维问答ject/lib/model/doctrine//base/BaseAdvert.class.php): failed to open stream: No such file or directory in /var/www/myproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 77

Do you know what the problem could be?

Thx for your answers :)


you can fix this by changing your packagename in schema.yml from

detect_relations: ...
options:
  type: ....

package: yourpackagename

to

package: yourpackagename.foobar

The modelgenerator expects an point in the name of the package

look at your /var/www/myproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildModelTask.class.php on line 77

you will find something like this

... isset($definition['package']) ? '/'.substr($definition['package'], 0, strpos($definition['package'], '.'))....


I now just removed the package definitions in the schema files, now it works. Doctrine seems to have problem with it. :-/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜