Doctrine2 Ignore table of database

前端 未结 3 1303
谎友^
谎友^ 2021-02-07 19:54

I\'m using Doctrine 2 and I want to generate an ORM of my database but I don\'t want select all tables of the db.

For example, in this db :

  • Table 1 has
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 20:29

    Ignoring the table was the solution:

    doctrine:
        dbal:
            schema_filter: ~^(?!Table1)~
    

提交回复
热议问题