server/src/app/Models/CocoonDocument.php
author ymh <ymh.work@gmail.com>
Tue, 11 Oct 2016 02:49:59 +0200
changeset 326 226d5b17a119
parent 18 f2a40bbc27f6
permissions -rw-r--r--
- First implementation of filter for languages. - Language is now an array in the document - various corrections linked to the above change - Simplify the IndexDocumet loop

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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