Merge pull request #287 from goetas/nullable
Nullable assocations for entity generator
This commit is contained in:
commit
f040ed0cf0
1 changed files with 3 additions and 0 deletions
|
@ -707,6 +707,9 @@ public function <methodName>()
|
||||||
|
|
||||||
private function _isAssociationIsNullable($associationMapping)
|
private function _isAssociationIsNullable($associationMapping)
|
||||||
{
|
{
|
||||||
|
if (isset($associationMapping['id']) && $associationMapping['id']) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (isset($associationMapping['joinColumns'])) {
|
if (isset($associationMapping['joinColumns'])) {
|
||||||
$joinColumns = $associationMapping['joinColumns'];
|
$joinColumns = $associationMapping['joinColumns'];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue