Symfony – Form Save Processes Outlined
In the never ending quest to figure out how to successfully embed symfony forms I found myself always opening /symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php to study the order of operations for saving data against a form object. Finally figured it was time to post it somewhere where I could easily get to it and may help other devs along the way.
Note: This is a living doc and may be updated over time.
- sfFormDoctrine::save($con)
- $con->beingTransaction()
- $this->doSave($con)
- $this->updateObject()
- $this->processValues()
- $this->object->fromArray($values)
- $this->updateObjectEmbeddedForms($values)
- $this->object->save($con)
- $this->saveEmbeddedForms($con)
- $this->updateObject()
- $con->commit()


Thanks, was looking for that. Faster than browsing symfony lib dir