Doctrine schema.yml generator

I am new to learning. I have done two small projects with a doctrine for myself, but now I am going to create a large project for my client. The project will contain more than 50 tables. Is there a way to generate schema.yml? I tried DB Designer and converted it to schema.yml, but I still had to check and rewrite the definitions manually. Thanks

+6
generator schema doctrine
source share
2 answers

you should try ORM Designer ( http://www.orm-designer.com/ ), which covers most of your needs. You can design the database in the same way as you use for design in DB Designer and export Doctrine (or Propel) to the schema.yml or schema.xml files (import from existing definitions is possible). It was designed for our web developers, so it supports symfony, Subversion, etc. plugins. You can find screencasts and instructions describing ORM Designer + Symfony + Doctrine / Propel at www.orm-designer.com. If you have any questions, please feel free to ask in our forum or just write to us.

Frantisek Troster
ORM Designer
www.orm-designer.com

+5
source share

You can do this with the cli doctrine.

Create a cli script by following these detailed steps .

Then run: ./doctrine generate-yaml-db from the script directory.

Hope this helps.

+4
source share

All Articles