Merge pull request #69 from lrc/hasones-translatable

BUGFIX Allow has_one relationships to be translated.
This commit is contained in:
Ingo Schommer 2012-11-15 03:37:12 -08:00
commit 9032711ea0

View File

@ -535,7 +535,8 @@ class Translatable extends DataExtension implements PermissionProvider {
$this->translatableFields = array_merge(
array_keys($this->owner->inheritedDatabaseFields()),
array_keys($this->owner->has_many()),
array_keys($this->owner->many_many())
array_keys($this->owner->many_many()),
array_keys($this->owner->has_one())
);
}
}