server/src/app/Models/CocoonDocument.php
author nowmad@23.1.168.192.in-addr.arpa
Thu, 17 Dec 2015 12:22:17 +0100
changeset 70 ad554d876c81
parent 18 f2a40bbc27f6
permissions -rw-r--r--
remove model to use the general one the application fetch on the first load

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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