As follow-up to this, I'm not currently able to currently replicate this error locally. However, I have seen this and googling it shows plenty of other people. Basically:
* A backup file is always created (e.g. Product.php~). That's fine and is expected, though we can improve docs and output from the command so it doesn't surprise people. * In SOME cases, the backup file seems to be autoloaded, giving the "Cannot redeclare class" error. Does anyone have any idea why or under what circumstances the backup file would be autoloaded? This error does seem to be somewhat common, and I'd like to be able to solve it. Thanks! Ryan Weaver US Office Head & Trainer - KnpLabs - Nashville, TN http://www.knplabs.com <http://www.knplabs.com/en> http://www.thatsquality.com Twitter: @weaverryan On Sun, Aug 7, 2011 at 1:00 PM, ryan weaver <weaverr...@gmail.com> wrote: > Hey guys! > > For your Product.php file, is there *also* a Product.php~ file present? > When you generate the entities, by default, a backup of that file is created > (and called EntityFilename.php~). I believe I've seen that both files are > autoloaded in certain cases, causing the duplicate class declaration. > > So, is this what you're experiencing? If you delete the extra file, does it > go away? > > Ryan Weaver > US Office Head & Trainer - KnpLabs - Nashville, TN > http://www.knplabs.com <http://www.knplabs.com/en> > http://www.thatsquality.com > Twitter: @weaverryan > > > > On Fri, Aug 5, 2011 at 11:01 AM, Dirk-Jan de Groot > <deejay1...@gmail.com>wrote: > >> same here ... >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony developers" group. >> To post to this group, send email to symfony-devs@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-devs+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-devs?hl=en >> > > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
