Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-2039: [GH-452] fix persistance for many-to-one association when using not primary key for referenced column #2717

Closed
doctrinebot opened this issue Sep 21, 2012 · 3 comments
Assignees
Labels

Comments

@doctrinebot
Copy link

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of timaschew:

Url: #452

Message:

Bugfix for exception:
Undefined index: xyz in ...\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php line 608
Problem occur, if you are using not the primary key for a many-to-one��association.
For example if you using: @joincolumn(name="address_no", referencedColumnName="a_no")
$newValId has only the primary key as element, but��
$newValId[$targetColumn] becomes in this case��
$newValId['a_no'] and this element does not exist -> exception

@doctrinebot
Copy link
Author

Comment created by @beberlei:

A related Github Pull-Request [GH-452] was closed
#452

@doctrinebot
Copy link
Author

Issue was closed with resolution "Invalid"

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-452] was closed:
doctrine/dbal#452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants