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

/**
 * BaseRVC_TIPO_RIESGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_riesgo
 * @property string $codigo
 * @property string $descripcion
 * @property integer $valor
 * @property Doctrine_Collection $RVC_FORMATO_PAGO
 * 
 * @method integer             getIdTipoRiesgo()     Returns the current record's "id_tipo_riesgo" value
 * @method string              getCodigo()           Returns the current record's "codigo" value
 * @method string              getDescripcion()      Returns the current record's "descripcion" value
 * @method integer             getValor()            Returns the current record's "valor" value
 * @method Doctrine_Collection getRVCFORMATOPAGO()   Returns the current record's "RVC_FORMATO_PAGO" collection
 * @method RVC_TIPO_RIESGO     setIdTipoRiesgo()     Sets the current record's "id_tipo_riesgo" value
 * @method RVC_TIPO_RIESGO     setCodigo()           Sets the current record's "codigo" value
 * @method RVC_TIPO_RIESGO     setDescripcion()      Sets the current record's "descripcion" value
 * @method RVC_TIPO_RIESGO     setValor()            Sets the current record's "valor" value
 * @method RVC_TIPO_RIESGO     setRVCFORMATOPAGO()   Sets the current record's "RVC_FORMATO_PAGO" collection
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_TIPO_RIESGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_TIPO_RIESGO');
        $this->hasColumn('id_tipo_riesgo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('codigo', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('valor', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
    }

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