From f0ebd6ab3cd253e95c7a93ce316891db1d371025 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Thu, 27 Jul 2017 20:15:59 +0200 Subject: [PATCH] Remove deprecated defaultLocale() call --- src/ORM/Behavior/TranslateBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/Behavior/TranslateBehavior.php b/src/ORM/Behavior/TranslateBehavior.php index 3c516efb680..e1440545d2a 100644 --- a/src/ORM/Behavior/TranslateBehavior.php +++ b/src/ORM/Behavior/TranslateBehavior.php @@ -99,7 +99,7 @@ class TranslateBehavior extends Behavior implements PropertyMarshalInterface public function __construct(Table $table, array $config = []) { $config += [ - 'defaultLocale' => I18n::defaultLocale(), + 'defaultLocale' => I18n::getDefaultLocale(), 'referenceName' => $this->_referenceName($table) ];