1

What is the best way to manage demo (development) data in application which uses Doctrine 2 ORM?

When I didn't use this ORM I simply draw diagram in MySQL Workbench and I used the "inserts" tab of each table to populate it with data. In Doctrine 2 I don't see such an option but I of course need it.

So, please, what is the best way to achieve that? What is your approach?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
grongor
  • 1,305
  • 1
  • 13
  • 26

2 Answers2

2

You want to hear about Doctrine Fixtures.

moonwave99
  • 21,957
  • 3
  • 43
  • 64
1

You want to hear about Doctrine Data Fixtures and Faker :-)

Ocramius
  • 25,171
  • 7
  • 103
  • 107