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:
Toby Zerner 2015-06-16 17:21:04 +09:30
parent 822feb2497
commit a890dc2114
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@
class DiscussionBasicSerializer extends BaseSerializer class DiscussionBasicSerializer extends BaseSerializer
{ {
protected static $relationships = [];
/** /**
* The resource type. * The resource type.
* *

View File

@ -2,6 +2,8 @@
class PostBasicSerializer extends BaseSerializer class PostBasicSerializer extends BaseSerializer
{ {
protected static $relationships = [];
/** /**
* The resource type. * The resource type.
* *