You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an extension with MultilingualActiveRecord.php that extends from ActiveRecord.php has additional multilingual attributes sets and add your behavior to behaviors(). But when i extend model in my application from it i get incorrect values for multilingual attributes for current language, because MultilingualUrlManager.php set application language after loading MultilingualActiveRecord.php and $currentLanguage at MultilingualBehavior set from language parameter in application config instead of MultilingualUrlManager.php logic for get current language. So, i think method
I have an extension with
MultilingualActiveRecord.php
that extends fromActiveRecord.php
has additional multilingual attributes sets and add your behavior tobehaviors()
. But when i extend model in my application from it i get incorrect values for multilingual attributes for current language, becauseMultilingualUrlManager.php
set application language after loadingMultilingualActiveRecord.php
and$currentLanguage
atMultilingualBehavior
set from language parameter in application config instead ofMultilingualUrlManager.php
logic for get current language. So, i think methodyii2-multilingual-behavior/src/MultilingualBehavior.php
Line 518 in 9589c9d
Also in general think
$currentLanguage
not needed in behavior because global yii application has language param.The text was updated successfully, but these errors were encountered: