This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Generate Entities from DB

Discuss installing Symfony 2 here

Generate Entities from DB

by Mark Knochen » Wed Jan 30, 2013 5:33 pm

Hi,

i want to generate Entities from an existing DB -> like in this Doc.
http://symfony.com/doc/2.0/cookbook/doc ... ering.html

But there is an annotation:

"If you have oneToMany relationships between your entities, you will need to edit the generated xml or yml files to
add a section on the specific entities for oneToMany defining the inversedBy and the mappedBy pieces."

How can I add the oneToMany-Section into the generated XML-Files for the tables?

Thank you


Mark
Mark Knochen
Junior Member
 
Posts: 1
Joined: Wed Jan 30, 2013 5:25 pm

Re: Generate Entities from DB

by Coderx » Thu Nov 28, 2013 1:41 pm

Did you figure this out? if so can you let me know please
Coderx
Junior Member
 
Posts: 10
Joined: Mon Nov 04, 2013 2:10 pm