Example #1
0
 /**
  * (non-PHPdoc)
  * @see DBField::scaffoldFormField()
  */
 public function scaffoldFormField($title = null, $params = null)
 {
     if (!$this->nullifyEmpty) {
         // Allow the user to select if it's null instead of automatically assuming empty string is
         return new NullableField(new TextField($this->name, $title));
     } else {
         // Automatically determine null (empty string)
         return parent::scaffoldFormField($title);
     }
 }