improve document model and propagate changes. This include the change of document fixtures to better reflect what the api is effectively returning
<?php
namespace CorpusParole\Models;
use Illuminate\Database\Eloquent\Model;
class CocoonDocument extends Model
{
public function revisions() {
return $this->hasMany('CorpusParole\Models\CocoonDocument', 'document_id');
}
}