On 04.11.2010 11:30, Lukas Kahwe Smith wrote:
> class User
> {
> /**
> * @validation:MinLetters(1)
> */
> protected $password;
>
> /**
> * @PersistMe
> */
> protected $hashedPassword;
>
> public function setPassword($password)
> {
> $this->password = $password;
> $this->hashedPassword = hash_me($password);
> }
> }
>
> Now this would mean that the DB schema has to change.
I don't see why. Just use password for persistence, and
plainTextPassword for the form ? IMO the "problem" is at the form
framework level, and the name of the password field at the model/db
level shouldn't be polluted by that.
Cheers
--
Jordi Boggiano
@seldaek :: http://seld.be/
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en