Skip to content

Commit

Permalink
Merge pull request #288 from meyerbaptiste/fix-translatable-methods-self
Browse files Browse the repository at this point in the history
TranslatableMethods: use late static bindings
  • Loading branch information
docteurklein committed Feb 9, 2016
2 parents 093d7d5 + 1ae28ba commit dd4a575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Translatable/TranslatableMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function doTranslate($locale = null, $fallbackToDefault = true)
}
}

$class = self::getTranslationEntityClass();
$class = static::getTranslationEntityClass();
$translation = new $class();
$translation->setLocale($locale);

Expand Down

0 comments on commit dd4a575

Please sign in to comment.