Permalink
Browse files

BUGFIX Allow has_one relationships to be translated.

Fixes #63
  • Loading branch information...
1 parent 1bb392c commit 2422195945cbdd6e952de093474dd0c02323e684 @drzax drzax committed Nov 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/model/Translatable.php
@@ -535,7 +535,8 @@ function setOwner($owner, $ownerBaseClass = null) {
$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())
);
}
}

0 comments on commit 2422195

Please sign in to comment.