server/src/app/Models/CocoonDocument.php
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 19 Jun 2016 23:58:21 +0200
changeset 193 64afd482ac71
parent 18 f2a40bbc27f6
permissions -rw-r--r--
/thematiques endpoint autocomplete design basic application colors

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

class CocoonDocument extends Model
{
    public function revisions() {
        return $this->hasMany('CorpusParole\Models\CocoonDocument', 'document_id');
    }
}