server/src/app/Models/CocoonDocument.php
author ymh <ymh.work@gmail.com>
Thu, 25 Feb 2016 10:20:01 +0100
changeset 130 fac22d8c2df8
parent 18 f2a40bbc27f6
permissions -rw-r--r--
add subjects to model + simple display on bo + add command to downloads documents to fixtures for test

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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