<?php
// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('PATRIMONIO', 'doctrine');

/**
 * BasePATRIMONIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pat
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property integer $id_tipo_bien
 * @property string $identificacion
 * @property decimal $valor
 * @property TIPO_BIEN $TIPO_BIEN
 * 
 * @method integer    getIdPat()          Returns the current record's "id_pat" value
 * @method integer    getIdTipoDoc()      Returns the current record's "id_tipo_doc" value
 * @method string     getNumDoc()         Returns the current record's "num_doc" value
 * @method integer    getIdTipoBien()     Returns the current record's "id_tipo_bien" value
 * @method string     getIdentificacion() Returns the current record's "identificacion" value
 * @method decimal    getValor()          Returns the current record's "valor" value
 * @method TIPO_BIEN  getTIPOBIEN()       Returns the current record's "TIPO_BIEN" value
 * @method PATRIMONIO setIdPat()          Sets the current record's "id_pat" value
 * @method PATRIMONIO setIdTipoDoc()      Sets the current record's "id_tipo_doc" value
 * @method PATRIMONIO setNumDoc()         Sets the current record's "num_doc" value
 * @method PATRIMONIO setIdTipoBien()     Sets the current record's "id_tipo_bien" value
 * @method PATRIMONIO setIdentificacion() Sets the current record's "identificacion" value
 * @method PATRIMONIO setValor()          Sets the current record's "valor" value
 * @method PATRIMONIO setTIPOBIEN()       Sets the current record's "TIPO_BIEN" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePATRIMONIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PATRIMONIO');
        $this->hasColumn('id_pat', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_bien', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('identificacion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('valor', 'decimal', 20, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('TIPO_BIEN', array(
             'local' => 'id_tipo_bien',
             'foreign' => 'id_tipo_bien'));
    }
}