1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +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);
}
}
}