douzi115522 2016-04-04 07:37
浏览 16
已采纳

我尝试验证我的架构时出现Doctrine错误

My problem is the next:

When I do "php app/console doctrine:schema:validate" throws this error:

enter image description here

Then when I see the code look like this:

enter image description here

By the way, this error ocurred when I moved my project from localhost( in my computer) to server. In my computer works perfectly.

Before, this error ocurred in other entity in the server and I had to removed the entity and create the new entity with "vi". Then, I copied the code into the new entity with the same name, so this way works but I not will like to make this for all my entities. I am using symfony 2.7.

I appreciate your help.

  • 写回答

1条回答 默认 最新

  • dongliang1873 2016-04-04 07:43
    关注

    You may have moved to *nix which is case sentive, so you should have a capital "C" on @ORM\Column.

    @ORM\Column(type="string", length=6)
         ^
    

    Always good to be accurate in the use of text case to be safe for both Windows or *nix environments.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部