I am trying to build my own user authentication system (simply because the ones out there are too convoluted and big).
I have trouble getting to grasps with the symfony form processing though. Am looking at sfDoctrineGuardPlugin, but for the life of me, can't figure out, when the inputted password is converted to a sha1 hash before being saved into the db. I've literally spent an hour with xdebug/netbeans and thousands of breakpoints.
Where can I read up on the form processing and automagical stuff that doctrine might do in between? Looking at "A Gentle Introduction to Symfony", but it's not really helping.
I found out, it's happening somewhere in the updateObject() Method.
if ($request->isMethod('post'))
{
$this->form->bind($request->getParameter($this->form->getName()));
if ($this->form->isValid())
{
var_dump($this->form->getObject()->password);
$this->form->updateObject();
var_dump($this->form->getObject()->password);
}
}
// Prints:
// null
// string '989d88b585ce29839687f2938303e828e191ecef' (length=40)
But am having trouble finding the implementation of that method, and what exactly it calls/does.
Can anyone shed some light? I just want to understand what symfony is doing in the background ;) Too much magic going on and the documentation is lacking sometimes.