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

/**
 * BaseNO_NOV_CONTROL_PAGO_KA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nov_control_pago_ka
 * @property integer $id_novedad_kardex
 * @property timestamp $fecha
 * @property integer $tipo_doc_sop
 * @property string $numero_doc
 * @property timestamp $fecha_doc
 * @property string $observaciones
 * @property integer $id_mae_fondos
 * @property integer $valor
 * @property NO_NOVEDAD_KARDEX $NO_NOVEDAD_KARDEX
 * @property TS_TD $TS_TD
 * @property NO_MAE_FONDOS $NO_MAE_FONDOS
 * 
 * @method integer                getIdNovControlPagoKa()     Returns the current record's "id_nov_control_pago_ka" value
 * @method integer                getIdNovedadKardex()        Returns the current record's "id_novedad_kardex" value
 * @method timestamp              getFecha()                  Returns the current record's "fecha" value
 * @method integer                getTipoDocSop()             Returns the current record's "tipo_doc_sop" value
 * @method string                 getNumeroDoc()              Returns the current record's "numero_doc" value
 * @method timestamp              getFechaDoc()               Returns the current record's "fecha_doc" value
 * @method string                 getObservaciones()          Returns the current record's "observaciones" value
 * @method integer                getIdMaeFondos()            Returns the current record's "id_mae_fondos" value
 * @method integer                getValor()                  Returns the current record's "valor" value
 * @method NO_NOVEDAD_KARDEX      getNONOVEDADKARDEX()        Returns the current record's "NO_NOVEDAD_KARDEX" value
 * @method TS_TD                  getTSTD()                   Returns the current record's "TS_TD" value
 * @method NO_MAE_FONDOS          getNOMAEFONDOS()            Returns the current record's "NO_MAE_FONDOS" value
 * @method NO_NOV_CONTROL_PAGO_KA setIdNovControlPagoKa()     Sets the current record's "id_nov_control_pago_ka" value
 * @method NO_NOV_CONTROL_PAGO_KA setIdNovedadKardex()        Sets the current record's "id_novedad_kardex" value
 * @method NO_NOV_CONTROL_PAGO_KA setFecha()                  Sets the current record's "fecha" value
 * @method NO_NOV_CONTROL_PAGO_KA setTipoDocSop()             Sets the current record's "tipo_doc_sop" value
 * @method NO_NOV_CONTROL_PAGO_KA setNumeroDoc()              Sets the current record's "numero_doc" value
 * @method NO_NOV_CONTROL_PAGO_KA setFechaDoc()               Sets the current record's "fecha_doc" value
 * @method NO_NOV_CONTROL_PAGO_KA setObservaciones()          Sets the current record's "observaciones" value
 * @method NO_NOV_CONTROL_PAGO_KA setIdMaeFondos()            Sets the current record's "id_mae_fondos" value
 * @method NO_NOV_CONTROL_PAGO_KA setValor()                  Sets the current record's "valor" value
 * @method NO_NOV_CONTROL_PAGO_KA setNONOVEDADKARDEX()        Sets the current record's "NO_NOVEDAD_KARDEX" value
 * @method NO_NOV_CONTROL_PAGO_KA setTSTD()                   Sets the current record's "TS_TD" value
 * @method NO_NOV_CONTROL_PAGO_KA setNOMAEFONDOS()            Sets the current record's "NO_MAE_FONDOS" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseNO_NOV_CONTROL_PAGO_KA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('NO_NOV_CONTROL_PAGO_KA');
        $this->hasColumn('id_nov_control_pago_ka', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_novedad_kardex', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('tipo_doc_sop', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('numero_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 2000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 2000,
             ));
        $this->hasColumn('id_mae_fondos', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $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->hasOne('NO_NOVEDAD_KARDEX', array(
             'local' => 'id_novedad_kardex',
             'foreign' => 'id_novedad_kardex'));

        $this->hasOne('TS_TD', array(
             'local' => 'tipo_doc_sop',
             'foreign' => 'id'));

        $this->hasOne('NO_MAE_FONDOS', array(
             'local' => 'id_mae_fondos',
             'foreign' => 'id_mae_fondos'));
    }
}