About your issue, that is a unix behaviour, the ~user.php file is a backup
file.

I get those ~*.* files whenever I delete a file.

2011/3/28 oscar balladares <liebegr...@gmail.com>

> I have the same issue.
>
> In the old days (S1) you had to extend the base entity class, so when
> regenerating/updating your schema, your custom code remained intact.
>
> Now, if you regenerate the entity, it will append the new code to the end
> of the file.
>
> I hate it, but it is ok for me now.
>
>
> 2011/3/28 mindeleven <j.kober....@space5.de>
>
>> Greetings,
>>
>> I'm having some trouble with doctrine:generate:entities in Symfony2.0/
>> PR7
>> (same in PR8).
>>
>> Every time I run doctrine:generate:entities (type: annotation) an
>> additional
>> entity is created in /Entity. For "/Entity/User.php" I get an
>> additional
>> "/Entity/~User.php".
>>
>> The problem is: ~User.php declares another "class User" and the next
>> thing I
>> get is an error telling me
>>
>> Cannot redeclare class Bilderundworte\CatalogBundle\Entity\User in
>> /Users/juergen/Sites/symfony20/symfony-symfony-standard_2/src/
>> Bilderundworte
>> /CatalogBundle/Entity/~User.php on line 10
>>
>> The solution is deleting ~User.php, but if you have to run
>> doctrine:generate:entities about a hundered times this starts to get
>> very
>> time consuming.
>>
>> Is there a solution to avoid the creation of the unwanted ~User.php?
>>
>> Best regards
>> Jürgen
>>
>> --
>> 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 users" group.
>> To post to this group, send email to symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to