We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return value of klisl\behaviors\JsonBehavior::onAfterFind() must be an instance of klisl\behaviors\void, none returned
in /var/www/instagram.test/vendor/klisl/yii2-json-behavior/src/JsonBehavior.php at line 62 53545556575859606162636465666768697071 { /** @var ActiveRecord $model */ $model = $event->sender; $jsonField = $this->getJsonField($model); $attribute = $model->getAttribute($jsonField);
if(!is_array($attribute)){ $model->{$this->property} = Json::decode($attribute); }
}
public function onBeforeSave(Event $event): void { /** @var ActiveRecord $model */ $model = $event->sender; $jsonField = $this->getJsonField($model);
$model->setAttribute($jsonField, Json::encode($model->{$this->property}));
in Media model public function getMedia() { return $this->hasMany(Media::class, ['thread_item_id' => 'id']); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Return value of klisl\behaviors\JsonBehavior::onAfterFind() must be an instance of klisl\behaviors\void, none returned
in /var/www/instagram.test/vendor/klisl/yii2-json-behavior/src/JsonBehavior.php at line 62
53545556575859606162636465666768697071 {
/** @var ActiveRecord $model */
$model = $event->sender;
$jsonField = $this->getJsonField($model);
$attribute = $model->getAttribute($jsonField);
}
public function onBeforeSave(Event $event): void
{
/** @var ActiveRecord $model */
$model = $event->sender;
$jsonField = $this->getJsonField($model);
}
in Media model
public function getMedia() {
return $this->hasMany(Media::class, ['thread_item_id' => 'id']);
}
The text was updated successfully, but these errors were encountered: