Permalink
Browse files

Merge pull request #69 from lrc/hasones-translatable

BUGFIX Allow has_one relationships to be translated.
  • Loading branch information...
2 parents 8b33120 + 2422195 commit 9032711ea0a1b020407a95c3383212447ea50b96 @chillu chillu committed Nov 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/model/Translatable.php
View
3 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 9032711

Please sign in to comment.