I have a complex database design with views, relationship etc. We decided to switch to ORM from the standard Zend_db. I successfully integrated zend 1.11 and doctrine 2.1. All the tutorials out there explains about creating the entire database through hand written classes. But what about already existing database with data in it? I again searched and found out that I got to use the below command
php orm:convert-mapping --from-database php path/where/you/want/to/store/mapping/classes
When I do it for a simple database with only 3 tables and without any relationship, the above command works beautifully.
But when I tried to use the same command on my database it throws a exception saying
[Doctrine\ORM\Mapping\MappingException]
Property "employeeid" in "Organization_has_employees" was already declared, but it must be
declared only once
I changed all my field name so that there is no repeated names in any of the table but still no luck.
Please help me with this. I am breaking my head for more than 3 days.
Karthik