<?php



class KemdagriKepadatanPenduduk extends \Phalcon\Mvc\Model
{
    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var string
     */
    public $kode;

    /**
     *
     * @var string
     */
    public $wilayah;

    /**
     *
     * @var int
     */
    public $jumlah_penduduk;

    /**
     *
     * @var string
     */
    public $luas_wilayah;

    /**
     *
     * @var string
     */
    public $kepadatan_penduduk;

    /**
     *
     * @var date
     */
    public $updated_date;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        $this->setSchema("jaga");
        $this->setSource("kemdagri_kepadatan_penduduk");
        $this->hasOne('kode', '\DesaMasterDesa', 'kode_PUM');
    }

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

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return KemdagriKepadatanPenduduk[]|KemdagriKepadatanPenduduk|\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 KemdagriKepadatanPenduduk|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }
}
