Skip to content

Commit

Permalink
Merge pull request #69 from lrc/hasones-translatable
Browse files Browse the repository at this point in the history
BUGFIX Allow has_one relationships to be translated.
  • Loading branch information
chillu committed Nov 15, 2012
2 parents 8b33120 + 2422195 commit 9032711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/model/Translatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
);
}
}
Expand Down

0 comments on commit 9032711

Please sign in to comment.