Fixing EntityRepositoryGenerator to not generate the repository if it already exists
This commit is contained in:
parent
b2eeac5640
commit
c43740c08a
@ -76,6 +76,8 @@ class <className> extends EntityRepository
|
||||
mkdir($dir, 0777, true);
|
||||
}
|
||||
|
||||
file_put_contents($path, $code);
|
||||
if ( ! file_exists($path)) {
|
||||
file_put_contents($path, $code);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user