public function __wakeup() { $this->package->load(); $this->packageRepository = Yii::createObject(PackageRepository::class); }