简体   繁体   中英

SonataAdminBundle & Password Encoding

I am using Symfony2.1.x and SonataAdminBundle w/ FOSUserBundle.

I have a new entity that includes a password field. When adding a new entry via admin panel, how do I encode the password?

Also, on another entity form, how do I go about not updating a field to doctrine if it's empty?

Is the passwordType isn't what you want ? http://symfony.com/doc/current/reference/forms/types/password.html

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