Doctrine can generate entities based on small data input, including relation information. However, i have failed to find any example or concise information on the topic. The official documentation only has a small paragraph, with a minor command line example, explaining absolutely nothing,
Can anyone refer to a book, article or even code sample of this?
First you need to bootstrap
Doctrineand get an instance ofEntityManager, then you once you have it, you can do the following:For more information on the configuration, read this:
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/configuration.html