Answer the question
In order to leave comments, you need to log in
Why does Yii::createObject($user) create the wrong object?
actually like this
$user='common\modules\Main\Entities\User';
var_dump(\Yii::createObject($user));
object(common\modules\Company\Services\CompanyService)#181 (1) {
["repository":"common\modules\Company\Services\CompanyService":private]=>
object(common\modules\Company\Repositories\CompanyRepository )#182 (0) { }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question