1
0
mirror of synced 2025-01-18 06:21:40 +03:00

DDC-1257 - Fix bug where validation callbacks are added multiple times in EntityGenerator

This commit is contained in:
Benjamin Eberlei 2011-07-09 15:11:16 +02:00
parent 305e0345ef
commit 442a2b3a51

View File

@ -691,6 +691,7 @@ public function <methodName>()
if ($this->_hasMethod($methodName, $metadata)) {
return;
}
$this->_staticReflection[$metadata->name]['methods'][] = $methodName;
$var = sprintf('_%sMethodTemplate', $type);
$template = self::$$var;
@ -723,6 +724,7 @@ public function <methodName>()
if ($this->_hasMethod($methodName, $metadata)) {
return;
}
$this->_staticReflection[$metadata->name]['methods'][] = $methodName;
$replacements = array(
'<name>' => $this->_annotationsPrefix . $name,