Skip to content

Instantly share code, notes, and snippets.

View josefadamcik's full-sized avatar

Josef Adamčík josefadamcik

View GitHub Profile
<?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());