server/src/app/Models/CocoonDocument.php
author ymh <ymh.work@gmail.com>
Fri, 05 Feb 2016 17:01:09 +0100
changeset 117 7abc74acf392
parent 18 f2a40bbc27f6
permissions -rw-r--r--
When merging ore:aggregation, process the license correctly, if different or null, the default is use, if the same, this is the value used

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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