1

What is the best way to seed a MongoDB database using Lithium PHP Framework, like in Ruby on Rails:

rake db:seed

Thanks!

Community
  • 1
  • 1
João Rocha da Silva
  • 4,259
  • 4
  • 26
  • 35
  • What I ended up doing was creating a special action in an admin controller that seeded the database, and another to delete everything in the system. Not elegant, I know, but it works flawlessly and everyone on the team was happy. – João Rocha da Silva Jun 25 '12 at 18:05

1 Answers1

3

There is:

Which you can reuse to create your li3 seed command.

greut
  • 4,305
  • 1
  • 30
  • 49