1
0
mirror of synced 2025-01-30 20:11:49 +03:00

Fix notice when using regenerate if exists and file is not new.

This commit is contained in:
Benjamin Eberlei 2012-01-12 11:20:49 +01:00
parent adec530c13
commit c1dae35a24

View File

@ -191,6 +191,8 @@ public function <methodName>()
if ( ! $this->_isNew) {
$this->_parseTokensInEntityFile(file_get_contents($path));
} else {
$this->_staticReflection[$metadata->name] = array('properties' => array(), 'methods' => array());
}
if ($this->_backupExisting && file_exists($path)) {
@ -1088,4 +1090,4 @@ public function <methodName>()
throw new \InvalidArgumentException('Invalid provided IdGeneratorType: ' . $type);
}
}
}
}