<?php

class ApbdBansos extends Phalcon\Mvc\Model
{
    const PROVINSI = 1;
    const KABKOT = 2;
    public function initialize()
    {
        $this->setSchema('jaga');
        $this->setSource('apbd_bansos');
    }

    public function toArray($columns = null)
    {
        $result = parent::toArray($columns);

        return $result;
    }

    public function toDetail()
    {
        $result = $this->toArray();

        return $result;
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'apbd_bansos';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return APBDBansos[]|APBDBansos|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return APBDBansos|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }
}
