i had install SontaUserBundle i follow the document n i created
now what i want to add oneToMany relationship inside user class
/**
* Application\Sonata\UserBundle\Entity\User;
* @ORM\Table(name="fos_user")
* @ORM\Entity
*/
class User extends BaseUser{
/**
* @var integer $id
*/
protected $id;
/**
* @ORM\OneToMany(targetEntity="\Bansri\AssetBundle\Entity\statusQues", mappedBy="user")
*/
protected $statusQues;
}
but when i am running
app/console doctrine:generate:entities ApplicationSonataUserBundle:User
it's not generate get and add functions and when i manually crated that get and add function its returning null
is somting wrong with my codes