mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Static relationship collections need to be initialised on subclasses
Will probably make this whole “custom relationships” thing a trait instead of being on the base class
This commit is contained in:
parent
822feb2497
commit
a890dc2114
|
@ -2,6 +2,8 @@
|
|||
|
||||
class DiscussionBasicSerializer extends BaseSerializer
|
||||
{
|
||||
protected static $relationships = [];
|
||||
|
||||
/**
|
||||
* The resource type.
|
||||
*
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
class PostBasicSerializer extends BaseSerializer
|
||||
{
|
||||
protected static $relationships = [];
|
||||
|
||||
/**
|
||||
* The resource type.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user