#1046: Relations do not work between columns with same primary key
---------------------------+----------------------------------------------- -
Reporter: jasoneisen | Owner: jwage
Type: defect | Status: closed
Priority: major | Milestone: 0.11.2
Component: Schema Files | Version: 0.11
Resolution: invalid | Keywords:
---------------------------+----------------------------------------------- -
Changes (by romanb):
* status: new => closed
* resolution: => invalid
Comment:
If both, local and foreign are primary keys you need to set the owningSide
option to true ('owningSide' => true) on the side that owns the foreign
key in the database.
See: http://www.phpdoctrine.org/documentation/manual/0_11?one-
page#relations:introduction
--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1046#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper