[DDC-1192] fix undefined variable in join-column section of xml driver Created: 03/Jun/11  Updated: 05/Jun/11  Resolved: 05/Jun/11

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: Mapping Drivers
Affects Version/s: 2.1
Fix Version/s: 2.0.6, 2.1
Security Level: All

Type: Bug Priority: Major
Reporter: Miha Vrhovnik Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


 Description   

$name is undefined, It might be that the fix is as simple as foreach ($manyToOneElement->

{'join-columns'}->{'join-column'} as $name => $joinColumnElement) {
but I'm not sure


if (isset($manyToOneElement->{'join-column'})) {
$joinColumns[] = $this->_getJoinColumnMapping($manyToOneElement->{'join-column'});
} else if (isset($manyToOneElement->{'join-columns'}

)) {
foreach ($manyToOneElement->

{'join-columns'}

->

{'join-column'}

as $joinColumnElement) {
if (!isset($joinColumnElement['name']))

{ $joinColumnElement['name'] = $name; }

$joinColumns[] = $this->_getJoinColumnMapping($joinColumnElement);
}
}




 Comments   
Comment by Benjamin Eberlei [ 05/Jun/11 ]

This is a copy paste error from the YAML Driver, i fixed it.

Generated at Sun Aug 30 07:59:39 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.