|
@@ -1363,7 +1363,7 @@ discard block |
|
|
block discarded – undo |
|
1363
|
1363
|
|
|
1364
|
1364
|
$lines[] = $this->generateAssociationMappingPropertyDocBlock($associationMapping, $metadata); |
|
1365
|
1365
|
$lines[] = $this->spaces . $this->fieldVisibility . ' $' . $associationMapping['fieldName'] |
|
1366
|
|
- . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null) . ";\n"; |
|
|
1366
|
+ . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null) . ";\n"; |
|
1367
|
1367
|
} |
|
1368
|
1368
|
|
|
1369
|
1369
|
return implode("\n", $lines); |
|
@@ -1388,7 +1388,7 @@ discard block |
|
|
block discarded – undo |
|
1388
|
1388
|
|
|
1389
|
1389
|
$lines[] = $this->generateFieldMappingPropertyDocBlock($fieldMapping, $metadata); |
|
1390
|
1390
|
$lines[] = $this->spaces . $this->fieldVisibility . ' $' . $fieldMapping['fieldName'] |
|
1391
|
|
- . (isset($fieldMapping['options']['default']) ? ' = ' . var_export($fieldMapping['options']['default'], true) : null) . ";\n"; |
|
|
1391
|
+ . (isset($fieldMapping['options']['default']) ? ' = ' . var_export($fieldMapping['options']['default'], true) : null) . ";\n"; |
|
1392
|
1392
|
} |
|
1393
|
1393
|
|
|
1394
|
1394
|
return implode("\n", $lines); |
|
@@ -1461,15 +1461,15 @@ discard block |
|
|
block discarded – undo |
|
1461
|
1461
|
} |
|
1462
|
1462
|
|
|
1463
|
1463
|
$replacements = [ |
|
1464
|
|
- '<description>' => ucfirst($type) . ' ' . $variableName, |
|
1465
|
|
- '<methodTypeHint>' => $methodTypeHint, |
|
1466
|
|
- '<variableType>' => $variableType . (null !== $defaultValue ? ('|' . $defaultValue) : ''), |
|
1467
|
|
- '<variableName>' => $variableName, |
|
1468
|
|
- '<methodName>' => $methodName, |
|
1469
|
|
- '<fieldName>' => $fieldName, |
|
1470
|
|
- '<variableDefault>' => ($defaultValue !== null ) ? (' = ' . $defaultValue) : '', |
|
1471
|
|
- '<entity>' => $this->getClassName($metadata), |
|
1472
|
|
- '<methodTypeReturn>' => $methodReturnType, |
|
|
1464
|
+ '<description>' => ucfirst($type) . ' ' . $variableName, |
|
|
1465
|
+ '<methodTypeHint>' => $methodTypeHint, |
|
|
1466
|
+ '<variableType>' => $variableType . (null !== $defaultValue ? ('|' . $defaultValue) : ''), |
|
|
1467
|
+ '<variableName>' => $variableName, |
|
|
1468
|
+ '<methodName>' => $methodName, |
|
|
1469
|
+ '<fieldName>' => $fieldName, |
|
|
1470
|
+ '<variableDefault>' => ($defaultValue !== null ) ? (' = ' . $defaultValue) : '', |
|
|
1471
|
+ '<entity>' => $this->getClassName($metadata), |
|
|
1472
|
+ '<methodTypeReturn>' => $methodReturnType, |
|
1473
|
1473
|
]; |
|
1474
|
1474
|
|
|
1475
|
1475
|
$method = str_replace( |