server/src/app/Models/CocoonDocument.php
author ymh <ymh.work@gmail.com>
Fri, 14 Oct 2016 01:28:34 +0200
changeset 330 8a29098c8273
parent 18 f2a40bbc27f6
permissions -rw-r--r--
in language treemap definition, remove glbal id to make it non selectable

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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