Snippet: Symfony Forms - Setting Default Values

I often forget how to set default values for form fields. Mainly because it's a function of sfForm rather than sfFormField I think. In the snippet below 'field' you are setting the default value for, and $value should be the default value.

<?php
    // lib/form/MyModelForm.class.php
    public function configure() {
      $this->setDefault('field', $value);
    } 
?>

A Note on Snippets: When using frameworks such as Symfony it is often the simplest pieces of code which are the hardest to either find or remember. These snippets are placed here for my own reference and will hopefully be useful to others. If you find them useful or have any suggestions, please let me know.