php - Which fields get persisted to database if I extend from FOSUserBundle User entity -
I am pushing my UserBundle with FOSUserbundle I see that in I have my class My questions are: Are there any database tables for a FosserBundle user unit or they are just classes and are not maintained > The above code will only be my first name in the form of my usability or all other attributes in the Where is the argument where FOSUserBundle is making its own table model / user.php Is a full user class and
Entity / User.php
namespace MYS coreBundle \ Entity; Use FOS \ UserBundle \ Entity \ User as BaseUser; Use the theory / ORM \ mapping as an ORM; As the Symfony \ Component \ Validator \ Constraints use; / ** * @ORM \ unit * @ORM \ table (name = "fos_user") * Expands / Class User BaseUser {/ ** * @ORM \ column (type = "string", length = "255" ) * @Assert \ NotBlank (message = "Please enter your name.", Group = {"registration", "profile"}) * @Assert \ minLength (range = "3", message = "name is too small . ", Group = {" registration "," profile "}) * @Assert \ MaxLength (limit =" 255 ", message =" name is too long ", group = {" registration "," profile "}) * / Protected $ firstName;
model / user.php in FosUserBundle
Comments
Post a Comment