<?php

class KorwilPadProgressAttachment extends \Phalcon\Mvc\Model
{

    const TIPE_JAWABAN = 0;
    const TIPE_VERIFIKASI = 1;

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

        return $result;
    }
}
