1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Improoved coding standards

This commit is contained in:
Asmir Mustafic 2011-10-24 10:19:01 +02:00
parent d4059b88ca
commit 5f80b57554

View File

@ -660,8 +660,6 @@ public function <methodName>()
$joinColumns = $associationMapping['joinColumns'];
} else {
//@todo thereis no way to retreive targetEntity metadata
//$targetMetadata = $this->getClassMetadata($associationMapping['targetEntity']);
//$joinColumns = $targetMetadata->associationMappings[$associationMapping["mappedBy"]]['joinColumns'];
$joinColumns = array();
}
foreach ($joinColumns as $joinColumn) {
@ -756,7 +754,7 @@ public function <methodName>()
'<variableName>' => Inflector::camelize($fieldName),
'<methodName>' => $methodName,
'<fieldName>' => $fieldName,
'<variableDefault>' => ($defaultValue!==null?('='.$defaultValue):''),
'<variableDefault>' => (($defaultValue !== null ) ? ('='.$defaultValue) : ''),
'<entity>' => $this->_getClassName($metadata)
);