server/src/app/Models/CocoonDocument.php
author nowmad@nowmads-macbook-pro.local
Fri, 11 Dec 2015 13:13:47 +0100
changeset 51 70dff07a76ff
parent 18 f2a40bbc27f6
permissions -rw-r--r--
add click event on visu-carto and visu-langue and update the url with the selected element as filter parameter

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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