server/src/app/Models/CocoonDocument.php
author nowmad@nowmads-macbook-pro.local
Thu, 07 Jan 2016 17:46:50 +0100
changeset 81 848e4a5ad4d9
parent 18 f2a40bbc27f6
permissions -rw-r--r--
update date params to be an array of date instead of a string

<?php

namespace CorpusParole\Models;

use Illuminate\Database\Eloquent\Model;

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