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

/**
 * BaseRVC_PAGO_CONTRA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_pago_contra
 * @property integer $id_contratista
 * @property integer $id_bn
 * @property integer $tipo_cuenta
 * @property string $num_cuenta
 * @property integer $estado
 * @property timestamp $fecha_activacion
 * @property timestamp $fecha_terminacion
 * @property string $adjunto_certif_bancaria
 * @property string $adjunto_aprobacion_supervisor
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * @property RVC_CONTRATISTA $RVC_CONTRATISTA
 * @property TS_BN $TS_BN
 * @property TS_TC $TS_TC
 * 
 * @method integer         getIdPagoContra()                  Returns the current record's "id_pago_contra" value
 * @method integer         getIdContratista()                 Returns the current record's "id_contratista" value
 * @method integer         getIdBn()                          Returns the current record's "id_bn" value
 * @method integer         getTipoCuenta()                    Returns the current record's "tipo_cuenta" value
 * @method string          getNumCuenta()                     Returns the current record's "num_cuenta" value
 * @method integer         getEstado()                        Returns the current record's "estado" value
 * @method timestamp       getFechaActivacion()               Returns the current record's "fecha_activacion" value
 * @method timestamp       getFechaTerminacion()              Returns the current record's "fecha_terminacion" value
 * @method string          getAdjuntoCertifBancaria()         Returns the current record's "adjunto_certif_bancaria" value
 * @method string          getAdjuntoAprobacionSupervisor()   Returns the current record's "adjunto_aprobacion_supervisor" value
 * @method timestamp       getFechaLog()                      Returns the current record's "fecha_log" value
 * @method string          getUsuarioLog()                    Returns the current record's "usuario_log" value
 * @method RVC_CONTRATISTA getRVCCONTRATISTA()                Returns the current record's "RVC_CONTRATISTA" value
 * @method TS_BN           getTSBN()                          Returns the current record's "TS_BN" value
 * @method TS_TC           getTSTC()                          Returns the current record's "TS_TC" value
 * @method RVC_PAGO_CONTRA setIdPagoContra()                  Sets the current record's "id_pago_contra" value
 * @method RVC_PAGO_CONTRA setIdContratista()                 Sets the current record's "id_contratista" value
 * @method RVC_PAGO_CONTRA setIdBn()                          Sets the current record's "id_bn" value
 * @method RVC_PAGO_CONTRA setTipoCuenta()                    Sets the current record's "tipo_cuenta" value
 * @method RVC_PAGO_CONTRA setNumCuenta()                     Sets the current record's "num_cuenta" value
 * @method RVC_PAGO_CONTRA setEstado()                        Sets the current record's "estado" value
 * @method RVC_PAGO_CONTRA setFechaActivacion()               Sets the current record's "fecha_activacion" value
 * @method RVC_PAGO_CONTRA setFechaTerminacion()              Sets the current record's "fecha_terminacion" value
 * @method RVC_PAGO_CONTRA setAdjuntoCertifBancaria()         Sets the current record's "adjunto_certif_bancaria" value
 * @method RVC_PAGO_CONTRA setAdjuntoAprobacionSupervisor()   Sets the current record's "adjunto_aprobacion_supervisor" value
 * @method RVC_PAGO_CONTRA setFechaLog()                      Sets the current record's "fecha_log" value
 * @method RVC_PAGO_CONTRA setUsuarioLog()                    Sets the current record's "usuario_log" value
 * @method RVC_PAGO_CONTRA setRVCCONTRATISTA()                Sets the current record's "RVC_CONTRATISTA" value
 * @method RVC_PAGO_CONTRA setTSBN()                          Sets the current record's "TS_BN" value
 * @method RVC_PAGO_CONTRA setTSTC()                          Sets the current record's "TS_TC" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_PAGO_CONTRA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_PAGO_CONTRA');
        $this->hasColumn('id_pago_contra', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contratista', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_bn', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('tipo_cuenta', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('num_cuenta', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_activacion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_terminacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('adjunto_certif_bancaria', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('adjunto_aprobacion_supervisor', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('TS_BN', array(
             'local' => 'id_bn',
             'foreign' => 'id_bn'));

        $this->hasOne('TS_TC', array(
             'local' => 'tipo_cuenta',
             'foreign' => 'id'));
    }
}