2

It's possible to generate database from classes that have writeen by this command

doctrine:mongodb:schema:create

Is there any way to do this inversely? I mean generate classes from database?

Emii Khaos
  • 9,983
  • 3
  • 34
  • 57
ABS
  • 2,626
  • 3
  • 28
  • 44

1 Answers1

0

You could generate the mapping classes from your mapping metadata (YML or XML):

// from php app/console 
doctrine:mongodb:generate:documents      
// Generate document classes and method stubs from your mapping information.

Cheers!