Re: [symfony-users] Symfony-2 Doctrine: Generateing realtions from annotaion

2011-06-22 Thread Kein
Yes, am trying to generate:entites - but it has no effect. Interesting 
that files entities/Products.php entites/Category.php was modifed with any 
generate:entites - but it's has no effect and i can't see any 
setter|getter for relation

-- 
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


Re: [symfony-users] Symfony-2 Doctrine: Generateing realtions from annotaion

2011-06-22 Thread Kein
I forget how, but i solve problem after many attemps.

-- 
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


Re: [symfony-users] Symfony-2 Doctrine: Generateing realtions from annotaion

2011-06-21 Thread Christophe COEVOET

Le 21/06/2011 16:21, Kein a écrit :
Im using this tutorial 
http://symfony.com/doc/current/book/doctrine.html#saving-related-entities. 

But command /php app/console doctrine:schema:update --force/ not 
generate setter and getter for Acme\StoreBundle\Entity\Product
And i recive error *Fatal error*: Call to undefined method 
Acme\StoreBundle\Entity\Product::setCategory() in
Where can be problem? How make doctrine generate correct setter and 
getter form added annotation to entities?


doctrine:schema:update is not meant to generate setters but to generate 
tables in the database.


--
Christophe | Stof

--
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


Re: [symfony-users] Symfony-2 Doctrine: Generateing realtions from annotaion

2011-06-21 Thread Luis Cordova
use doctrine:generate:entities

On Tue, Jun 21, 2011 at 10:55 AM, Christophe COEVOET s...@notk.org wrote:
 Le 21/06/2011 16:21, Kein a écrit :

 Im using this tutorial.
 But command php app/console doctrine:schema:update --force not generate
 setter and getter for Acme\StoreBundle\Entity\Product
 And i recive error Fatal error: Call to undefined method
 Acme\StoreBundle\Entity\Product::setCategory() in
 Where can be problem? How make doctrine generate correct setter and getter
 form added annotation to entities?

 doctrine:schema:update is not meant to generate setters but to generate
 tables in the database.

 --
 Christophe | Stof

 --
 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