Remove records property from story search results

This commit is contained in:
Thibaud Fabre
2016-06-27 17:17:50 +02:00
parent 9e891d4ae9
commit 5648f3219c
5 changed files with 35 additions and 11 deletions

View File

@@ -15,8 +15,15 @@ use League\Fractal\TransformerAbstract;
class StoryTransformer extends TransformerAbstract
{
/**
* @var array
*/
protected $availableIncludes = ['thumbnail', 'metadatas', 'records'];
protected $defaultIncludes = ['thumbnail', 'metadatas', 'records'];
/**
* @var array
*/
protected $defaultIncludes = ['thumbnail', 'metadatas'];
/**
* @var SubdefTransformer