1
0
mirror of synced 2025-02-20 14:13:15 +03:00

Fixing EntityRepositoryGenerator to not generate the repository if it already exists

This commit is contained in:
Jonathan H. Wage 2010-04-14 20:42:17 -04:00
parent b2eeac5640
commit c43740c08a

View File

@ -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);
}
}
}