Hello Oscar,

thanks for your reply.

If getting the ~*.* files the files is only due to my OS (Mac OS 10.6.), I
think I should get these files also in Symfony 1.0 in the lib/model/om
directory or in Symfony 1.3 in the lib/model/doctrine/base directory. But
that never was the case ­ and I¹m still working with these projects. I don¹t
know if the backup files have been deleted by symfony itself in previous
symfony versions.

The only problem with the code appended at the end of the Entity I have is
with doctrine extensions: if you use Translateable, the complete code is
still duplicated and appended ­ including all properties and methods
allready in the class.

Regards
Jürgen 


Am 28.03.2011 23:05 Uhr schrieb "oscar balladares" unter
<liebegr...@gmail.com>:

> 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 <http://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
>>> <mailto:symfony-users%2bunsubscr...@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