|
@@ -1356,7 +1356,7 @@ discard block |
|
|
block discarded – undo |
|
1356
|
1356
|
|
|
1357
|
1357
|
$lines[] = $this->generateAssociationMappingPropertyDocBlock($associationMapping, $metadata); |
|
1358
|
1358
|
$lines[] = $this->spaces . $this->fieldVisibility . ' $' . $associationMapping['fieldName'] |
|
1359
|
|
- . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null) . ";\n"; |
|
|
1359
|
+ . ($associationMapping['type'] == 'manyToMany' ? ' = array()' : null) . ";\n"; |
|
1360
|
1360
|
} |
|
1361
|
1361
|
|
|
1362
|
1362
|
return implode("\n", $lines); |
|
@@ -1384,7 +1384,7 @@ discard block |
|
|
block discarded – undo |
|
1384
|
1384
|
|
|
1385
|
1385
|
$lines[] = $this->generateFieldMappingPropertyDocBlock($fieldMapping, $metadata); |
|
1386
|
1386
|
$lines[] = $this->spaces . $this->fieldVisibility . ' $' . $fieldMapping['fieldName'] |
|
1387
|
|
- . (isset($fieldMapping['options']['default']) ? ' = ' . var_export($fieldMapping['options']['default'], true) : null) . ";\n"; |
|
|
1387
|
+ . (isset($fieldMapping['options']['default']) ? ' = ' . var_export($fieldMapping['options']['default'], true) : null) . ";\n"; |
|
1388
|
1388
|
} |
|
1389
|
1389
|
|
|
1390
|
1390
|
return implode("\n", $lines); |
|
@@ -1457,15 +1457,15 @@ discard block |
|
|
block discarded – undo |
|
1457
|
1457
|
} |
|
1458
|
1458
|
|
|
1459
|
1459
|
$replacements = array( |
|
1460
|
|
- '<description>' => ucfirst($type) . ' ' . $variableName, |
|
1461
|
|
- '<methodTypeHint>' => $methodTypeHint, |
|
1462
|
|
- '<variableType>' => $variableType, |
|
1463
|
|
- '<variableName>' => $variableName, |
|
1464
|
|
- '<methodName>' => $methodName, |
|
1465
|
|
- '<fieldName>' => $fieldName, |
|
1466
|
|
- '<variableDefault>' => ($defaultValue !== null ) ? (' = '.$defaultValue) : '', |
|
1467
|
|
- '<entity>' => $this->getClassName($metadata), |
|
1468
|
|
- '<methodTypeReturn>' => $methodReturnType, |
|
|
1460
|
+ '<description>' => ucfirst($type) . ' ' . $variableName, |
|
|
1461
|
+ '<methodTypeHint>' => $methodTypeHint, |
|
|
1462
|
+ '<variableType>' => $variableType, |
|
|
1463
|
+ '<variableName>' => $variableName, |
|
|
1464
|
+ '<methodName>' => $methodName, |
|
|
1465
|
+ '<fieldName>' => $fieldName, |
|
|
1466
|
+ '<variableDefault>' => ($defaultValue !== null ) ? (' = '.$defaultValue) : '', |
|
|
1467
|
+ '<entity>' => $this->getClassName($metadata), |
|
|
1468
|
+ '<methodTypeReturn>' => $methodReturnType, |
|
1469
|
1469
|
); |
|
1470
|
1470
|
|
|
1471
|
1471
|
$method = str_replace( |