English 中文(简体)
Doctrine schema.yml generator
原标题:

I am pretty new to doctrine. I made two small projects with doctrine for my own but now I am about to create big project for my client. The project will have more than 50 tables. Is there any way of generating schema.yml? I tried DB Designer and converted it to schema.yml, but I still had to check and rewrite the definitions by hand. Thanks

问题回答

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

Frantisek Troster
ORM Designer
www.orm-designer.com

You can do this with doctrine cli.

Create a cli script by following these detailed steps.

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

Hope this helps.





相关问题
XmlDocument.Validate ignore properties without [XmlIgnore]

I have a object that has a number of properties that aren t present in the xsd file. When doing XmlDocument.Validate is there a way I can tell it to ignore properties that are not present in the xsd ...

FOSS version of SQLCompare or something similar?

Actually, free is good enough, it doesn t have to be open source :) I m currently using the Schema Compare utility of VS2008, but it doesn t have a command line interface and has some other ...

How does Doctrine handle changes to the database schema?

In brief, what happens when you add a column to a table? What happens when you remove one? In more details, suppose you have the following: class User extends Doctrine_Record { public function ...

摘自XML Schema

我想要把复杂的XML化学仪编成册,并出口到C#文档中。

Using a schema other than dbo in LinqToSql Designer

Is there a way to specify in a data connection or the LinqToSql Designer a schema? Whenever I go to setup a data connection for LinqToSql there doesn t seem to be anyway to specify a schema and I ...

热门标签