mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-1799: Doctrine's Reverse Engineering 1-n (one to many) association misunderstood as 1-1 (one to one) #2264
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 27, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user linuxatico:
I found an odd behaviour of Doctrine's reverse engineering process, just create two simple tables tied by a simple 1-n relationship, take a look at the snap of the folowing SQL code:
I have a Symfony2 netbeans project at
and from that location, according to
in a terminal I did:
The fact is that it only seems ok, because if you take a look at "Tag.orm.yml":
It created a **oneToOne* relationship and not a oneToMany* !
If you need any more confirmation, here are _Task.php_ and _Tag.php_:
_Task.php_
linuxatico