Fix xml fix again
This commit is contained in:
parent
54217bd4c6
commit
231d84b625
@ -327,6 +327,8 @@ class XmlDriver extends AbstractFileDriver
|
|||||||
|
|
||||||
if (isset($oneToManyElement['index-by'])) {
|
if (isset($oneToManyElement['index-by'])) {
|
||||||
$mapping['indexBy'] = (string)$oneToManyElement['index-by'];
|
$mapping['indexBy'] = (string)$oneToManyElement['index-by'];
|
||||||
|
} else if (isset($oneToManyElement->{'index-by'})) {
|
||||||
|
throw new \InvalidArgumentException("<index-by /> is not a valid tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
$metadata->mapOneToMany($mapping);
|
$metadata->mapOneToMany($mapping);
|
||||||
@ -432,8 +434,10 @@ class XmlDriver extends AbstractFileDriver
|
|||||||
$mapping['orderBy'] = $orderBy;
|
$mapping['orderBy'] = $orderBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($manyToManyElement->{'index-by'})) {
|
if (isset($manyToManyElement['index-by'])) {
|
||||||
$mapping['indexBy'] = (string)$manyToManyElement->{'index-by'};
|
$mapping['indexBy'] = (string)$manyToManyElement['index-by'];
|
||||||
|
} else if (isset($manyToManyElement->{'index-by'})) {
|
||||||
|
throw new \InvalidArgumentException("<index-by /> is not a valid tag");
|
||||||
}
|
}
|
||||||
|
|
||||||
$metadata->mapManyToMany($mapping);
|
$metadata->mapManyToMany($mapping);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user