Re: [symfony-users] Doctrine:generate:entities

2011-05-02 Thread Marco Pivetta
Entities are not generated by their setters or getters :) Please take some time to look at the Object Hydrator ;) Marco Pivetta @Ocramius http://marco-pivetta.com On 30 April 2011 02:34, sergio wrote: > Regarding doctrine:generate:entities... I wonder why it don't

Re: [symfony-users] Doctrine:generate:entities

2011-05-02 Thread Joao Daniel Togni
Hi, You are not supposed to change manually the id. Doctrine manages it for you. It will update the id when you fetch data or persist/flush, for instance. Regards, Daniel On Sat, Apr 30, 2011 at 4:16 AM, A A wrote: > You should determine entity by finding it first ($entity = > $entityManager->f

[symfony-users] Doctrine:generate:entities

2011-04-30 Thread Sergio Perez
Hello, I have the follow problem: When I try doctrine:generate:entities AplicationNameBundle I get twice a PHP Fatal error: Call to a member function getShortName() on a non-object in Symfony\...\GenerateEntitiesDoctrineCommand.php on line 63 Before do that I’ve generated my schema from

Re: [symfony-users] Doctrine:generate:entities

2011-04-30 Thread A A
You should determine entity by finding it first ($entity = $entityManager->findOneById($id)), then set other fields to update. You can't set it an id and then save(update) it. 2011/4/30 sergio > Regarding doctrine:generate:entities... I wonder why it don't generate the > setId() method in the en

[symfony-users] Doctrine:generate:entities

2011-04-29 Thread sergio
Regarding doctrine:generate:entities... I wonder why it don't generate the setId() method in the entities files? Enviado desde mi dispositivo BlackBerry® -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becau

AW: AW: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-30 Thread Juergen Kober
O.k., I¹ve figured it out - the backup file is created by EntityGenerator ( Doctrine\ORM\Tools): if ($this->_backupExisting && file_exists($path)) { $backupPath = dirname($path) . DIRECTORY_SEPARATOR . "~" . basename($path); if (!copy($path, $backupPath)) {

Re: AW: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-29 Thread Vincent Lechemin
Do you have getters setters for your class? -- Vincent Lechemin -- 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,

AW: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-29 Thread Juergen Kober
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 w

Re: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread oscar balladares
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 > I have the same issue. > > In the old days (S1) you had to extend the base entity class, so when > regenerating/updating your schema, yo

Re: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread oscar balladares
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

[symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread mindeleven
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.ph

[symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread Juergen Kober
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.ph

[symfony-users] doctrine:generate:Entities update not possible ?

2011-02-18 Thread spike3111
Hello, I wondered why it was not possible to update a file. dcm.yml example, in which we modify the schema for any reason, and we can not use the command update for the entity that has existed with Doctrine2? $ php doctrine orm:generate-entities --update-entities $ php doctrine orm:generate-entit

Re: [symfony-users] doctrine:generate:entities generating classes in wrong folder?

2010-12-29 Thread c6dney c6dney
Same here, I didn't remember HowI fixed this. 2010/12/2 jopoli...@gmail.com > hi, my name is jorge, i've been recently working with de PR4 of the > symfony 2.0 sandbox, i was following the guide about symfony and > doctrine when i tried to generate the class for the user table that is > inside t

[symfony-users] doctrine:generate:entities generating classes in wrong folder?

2010-12-03 Thread jopoli...@gmail.com
hi, my name is jorge, i've been recently working with de PR4 of the symfony 2.0 sandbox, i was following the guide about symfony and doctrine when i tried to generate the class for the user table that is inside the guide, however the class generated wasn't in the folder "Application/HelloBundle/Ent