mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3582 from g4b0/3581-translate_belongs_many_many
belongs_many_many are now translatable
This commit is contained in:
commit
32bcfe7f4e
@ -3293,6 +3293,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
$types['has_one'] = (array)singleton($ancestorClass)->uninherited('has_one', true);
|
||||
$types['has_many'] = (array)singleton($ancestorClass)->uninherited('has_many', true);
|
||||
$types['many_many'] = (array)singleton($ancestorClass)->uninherited('many_many', true);
|
||||
$types['belongs_many_many'] = (array)singleton($ancestorClass)->uninherited('belongs_many_many', true);
|
||||
}
|
||||
foreach($types as $type => $attrs) {
|
||||
foreach($attrs as $name => $spec) {
|
||||
|
Loading…
Reference in New Issue
Block a user