server/src/app/Models/CocoonDocument.php
author ymh <ymh.work@gmail.com>
Fri, 21 Oct 2016 09:26:28 +0200
changeset 379 0b14f178ca53
parent 18 f2a40bbc27f6
permissions -rw-r--r--
No limitation on the number of item at this level. It has already been checked when preparing the query parameters

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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