Skip to content

Instantly share code, notes, and snippets.

@kriswallsmith
Created July 18, 2009 07:39
Show Gist options
  • Save kriswallsmith/149462 to your computer and use it in GitHub Desktop.
Save kriswallsmith/149462 to your computer and use it in GitHub Desktop.
<?php
class BaseDoctrineForm extends sfFormDoctrine
{
public function __construct($object = null, $options = array(), $CSRFSecret = null)
{
parent::__construct($object, $options, $CSRFSecret);
// tell the widget schema which fields are required
$this->widgetSchema->addOption(
'required_fields',
$this->getRequiredFields()
);
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment