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 model / user.php Is a full user class and Entity / User.php

I have my class

  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;   

My questions are:

  1. Are there any database tables for a FosserBundle user unit or they are just classes and are not maintained >

  2. The above code will only be my first name in the form of my usability or all other attributes in the model / user.php in FosUserBundle

  3. Where is the argument where FOSUserBundle is making its own table

    1. no All you have a column in the $ name Fos_user database must update the schema and field. See <1 li>
    2. 1.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -