简体   繁体   中英

Symfony2: Do I need to create mapping-information for FOSUserBundle's abstract User class? Why are there no annotations?

I am extending from FOSUserBundle's abstract User class as described in the documentation .

I see that there Doctrine/ORM's mapping-annotations in the class.

Does this mean that - if I extend from the class - the properties defined in the abstract class won't get persisted?

Do I need to manually edit the bundle's abstract class or has the mapping been defined elsewhere?

FOSUserBundle uses XML mappings.

That's the reason there are no annotations in the abstract User class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM