Fix notice when using regenerate if exists and file is not new.
This commit is contained in:
parent
adec530c13
commit
c1dae35a24
@ -191,6 +191,8 @@ public function <methodName>()
|
|||||||
|
|
||||||
if ( ! $this->_isNew) {
|
if ( ! $this->_isNew) {
|
||||||
$this->_parseTokensInEntityFile(file_get_contents($path));
|
$this->_parseTokensInEntityFile(file_get_contents($path));
|
||||||
|
} else {
|
||||||
|
$this->_staticReflection[$metadata->name] = array('properties' => array(), 'methods' => array());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->_backupExisting && file_exists($path)) {
|
if ($this->_backupExisting && file_exists($path)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user