Commit c43740c0 authored by Jonathan H. Wage's avatar Jonathan H. Wage

Fixing EntityRepositoryGenerator to not generate the repository if it already exists

parent b2eeac56
......@@ -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);
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment