<?php

class KorwilAsetAttachment extends \Phalcon\Mvc\Model
{
    const TIPE_SUBMIT = 0;
    const TIPE_VERIFIED = 1;

    public function initialize()
    {
        $this->setSchema("jaga");
        $this->setSource("korwil_aset_attachment");
        $this->belongsTo(
            'id_attachment',
            'Attachments',
            'id'
        );
    }
    public function toArray($columns = null)
    {
        $result = parent::toArray($columns);
        $result['attachments'] = $this->Attachments;

        return $result;
    }
}
