Remove parent class doctrine mapped field in Symfony [FOSUserBundle]

How can I remove a field that is inherited as doctrine columns from a mapping?

Example:

In FosUserBundle, I don't need some of the columns (e.g. salt, expiresAt ...) in my User class. How can I tell symfony / doctrine to no longer display this column in the database / remove it from display? I know how to “reconfigure” columns using @AttributeOverride, but how can I completely remove a field from display?

Sincerely.

+1
source share
1 answer

Almost all of the default properties for the FOSUB user object are required for the package to work as expected.

, (, expiresAt), , .

.

, .

+2

All Articles