When items are added with the DataObjectManager Module, I want them to be saved such that all uppercase letters are converted to lowercase letters.
Here is my code:
<?php
class SectionItem extends DataObject
{
static $db = array (
'Section' => 'Text'
);
public function getCMSFields_forPopup()
{
return new FieldSet(
new TextField('Section')
);
}
}
?>