Fix include resolution

Incorrect use of += operator on arrays caused the story includes to
always be unset
This commit is contained in:
Thibaud Fabre
2016-06-29 18:44:39 +02:00
parent 3498b835d5
commit faf9b98b11
3 changed files with 18 additions and 13 deletions

View File

@@ -15,6 +15,7 @@ use League\Fractal\TransformerAbstract;
class RecordTransformer extends TransformerAbstract
{
protected $availableIncludes = ['thumbnail', 'technical_informations', 'subdefs', 'metadata', 'status', 'caption'];
protected $defaultIncludes = ['thumbnail', 'technical_informations'];
/**