An idea from @lindyhopchris to support relationships not only as classes with empty attributes but as a pair of type and identity as well ``` php public function getRelationships($comment, $includedRelationships = []) { return [ 'author' => [ static::DATA => isset($includedRelationships['author']) ? $comment->getAuthor() : [AuthorSchema::class, $comment->author_id], ], ]; } ```