[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'} )) { -> {'join-column'} as $joinColumnElement) { $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. |