امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Assume you have a getter like this:
PHP:
In your entity's
Sending the webhook will cause this error:
LogicException: Instances of XF\Db\AbstractAdapter cannot be serialized or unserialized in src/XF/Db/AbstractAdapter.php at line 686
Read more
PHP:
کد:
public function getTagline(): \XF\Phrase
{
return \XF::phrase($this->getTaglinePhraseName());
}
In your entity's
setupApiResultData you include it like so: $result->includeGetter('tagline');Sending the webhook will cause this error:
LogicException: Instances of XF\Db\AbstractAdapter cannot be serialized or unserialized in src/XF/Db/AbstractAdapter.php at line 686
- ...
Read more
