Ignore a Doctrine2 Entity when running schema-manager update

后端 未结 5 1759
天涯浪人
天涯浪人 2020-12-06 17:51

I\'ve got a Doctrine Entity defined that maps to a View in my database. All works fine, the Entity relations work fine as expected.

Problem now is that when running

5条回答
  •  爱一瞬间的悲伤
    2020-12-06 18:17

    If problem is only with producing errors in db_view, when calling doctrine:schema:update command, why not simplest way:

    1. remove @ from @ORM\Entity annotation
    2. execute doctrine:schema:update
    3. add @ to ORM\Entity annotation

    ;-)

提交回复
热议问题