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

/**
 * BaseRVC_NUMERO_PAGO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_numero_pago
 * @property integer $numero
 * @property string $descripcion
 * @property Doctrine_Collection $RVC_FORMATO_PAGO
 * 
 * @method integer             getIdNumeroPago()     Returns the current record's "id_numero_pago" value
 * @method integer             getNumero()           Returns the current record's "numero" value
 * @method string              getDescripcion()      Returns the current record's "descripcion" value
 * @method Doctrine_Collection getRVCFORMATOPAGO()   Returns the current record's "RVC_FORMATO_PAGO" collection
 * @method RVC_NUMERO_PAGO     setIdNumeroPago()     Sets the current record's "id_numero_pago" value
 * @method RVC_NUMERO_PAGO     setNumero()           Sets the current record's "numero" value
 * @method RVC_NUMERO_PAGO     setDescripcion()      Sets the current record's "descripcion" value
 * @method RVC_NUMERO_PAGO     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_NUMERO_PAGO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_NUMERO_PAGO');
        $this->hasColumn('id_numero_pago', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('numero', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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