1

我正在使用带有 FOSUserBundle 的 Symfony2.1.x 和 SonataAdminBundle。

我有一个包含密码字段的新实体。通过管理面板添加新条目时,如何对密码进行编码?

另外,在另一个实体表单上,如果字段为空,我该如何不将其更新为学说?

4

1 回答 1

0

passwordType 不是您想要的吗? http://symfony.com/doc/current/reference/forms/types/password.html

于 2012-11-27T13:15:07.647 回答