Fixing EntityRepositoryGenerator to not generate the repository if it already exists
This commit is contained in:
parent
b2eeac5640
commit
c43740c08a
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue