I followed the documentation and created a unique index on a columns '"MyField","MyOtherField"' but the ModelAdmin is still accepting duplicate entries for the indexed column. Why is it not validating the entries? Below is the code for reference.
<?php
class MyTestObject extends DataObject {
private static $db = array(
'MyField' => 'Varchar',
'MyOtherField' => 'Varchar',
);
private static $indexes = array(
'MyIndexName' => array(
'type' => 'unique',
'value' => '"MyField","MyOtherField"'
)
);
}