joinColumn is not required in manyToMany
annotation behavior copied
This commit is contained in:
parent
c8c7cf0528
commit
1edf6b65b1
@ -488,6 +488,7 @@ class YamlDriver extends FileDriver
|
||||
$joinTable['schema'] = $joinTableElement['schema'];
|
||||
}
|
||||
|
||||
if (isset($joinTableElement['joinColumns'])) {
|
||||
foreach ($joinTableElement['joinColumns'] as $joinColumnName => $joinColumnElement) {
|
||||
if ( ! isset($joinColumnElement['name'])) {
|
||||
$joinColumnElement['name'] = $joinColumnName;
|
||||
@ -496,6 +497,7 @@ class YamlDriver extends FileDriver
|
||||
$joinTable['joinColumns'][] = $this->joinColumnToArray($joinColumnElement);
|
||||
}
|
||||
|
||||
if (isset($joinTableElement['inverseJoinColumns'])) {
|
||||
foreach ($joinTableElement['inverseJoinColumns'] as $joinColumnName => $joinColumnElement) {
|
||||
if ( ! isset($joinColumnElement['name'])) {
|
||||
$joinColumnElement['name'] = $joinColumnName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user