I am following the book and on the page http://symfony.com/doc/current/book/doctrine.html
While following the book I am trying to work on relationship of product and cat
With
doctrine:generate:entity
you'll create new entity.
And when you add some attributes by hand with
doctrine:generate:entities AcmeDemoBundle:User
you'll create all accessor (getter and setter) of the entity User of AcmeDemoBundle