ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 20,470
- Points
- 823
Reputation:
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
Continue reading...
PHP:
Code:
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
Continue reading...