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

/**
 * BaseTIPO_DOCUMENTO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_doc
 * @property string $descripcion
 * @property string $abreviacion
 * @property string $codigo_siif
 * @property Doctrine_Collection $RVC_CONTRATISTA
 * 
 * @method integer             getIdTipoDoc()       Returns the current record's "id_tipo_doc" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method string              getAbreviacion()     Returns the current record's "abreviacion" value
 * @method string              getCodigoSiif()      Returns the current record's "codigo_siif" value
 * @method Doctrine_Collection getRVCCONTRATISTA()  Returns the current record's "RVC_CONTRATISTA" collection
 * @method TIPO_DOCUMENTO      setIdTipoDoc()       Sets the current record's "id_tipo_doc" value
 * @method TIPO_DOCUMENTO      setDescripcion()     Sets the current record's "descripcion" value
 * @method TIPO_DOCUMENTO      setAbreviacion()     Sets the current record's "abreviacion" value
 * @method TIPO_DOCUMENTO      setCodigoSiif()      Sets the current record's "codigo_siif" value
 * @method TIPO_DOCUMENTO      setRVCCONTRATISTA()  Sets the current record's "RVC_CONTRATISTA" collection
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTIPO_DOCUMENTO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TIPO_DOCUMENTO');
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
        $this->hasColumn('abreviacion', 'string', 10, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('codigo_siif', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('RVC_CONTRATISTA', array(
             'local' => 'id_tipo_doc',
             'foreign' => 'id_tipo_doc'));
    }
}