mirror of
https://github.com/flarum/core.git
synced 2025-07-27 03:30:28 +02: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:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
class DiscussionBasicSerializer extends BaseSerializer
|
class DiscussionBasicSerializer extends BaseSerializer
|
||||||
{
|
{
|
||||||
|
protected static $relationships = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The resource type.
|
* The resource type.
|
||||||
*
|
*
|
||||||
|
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
class PostBasicSerializer extends BaseSerializer
|
class PostBasicSerializer extends BaseSerializer
|
||||||
{
|
{
|
||||||
|
protected static $relationships = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The resource type.
|
* The resource type.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user