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

/**
 * BaseTS_ANUL_PAGOS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_anul_pago
 * @property integer $id_pago_obl
 * @property timestamp $fecha_anul
 * @property string $concepto
 * @property string $observaciones
 * @property string $usuario
 * @property timestamp $fecha_log
 * @property TS_PAGO_OBL $TS_PAGO_OBL
 * 
 * @method integer       getIdAnulPago()    Returns the current record's "id_anul_pago" value
 * @method integer       getIdPagoObl()     Returns the current record's "id_pago_obl" value
 * @method timestamp     getFechaAnul()     Returns the current record's "fecha_anul" value
 * @method string        getConcepto()      Returns the current record's "concepto" value
 * @method string        getObservaciones() Returns the current record's "observaciones" value
 * @method string        getUsuario()       Returns the current record's "usuario" value
 * @method timestamp     getFechaLog()      Returns the current record's "fecha_log" value
 * @method TS_PAGO_OBL   getTSPAGOOBL()     Returns the current record's "TS_PAGO_OBL" value
 * @method TS_ANUL_PAGOS setIdAnulPago()    Sets the current record's "id_anul_pago" value
 * @method TS_ANUL_PAGOS setIdPagoObl()     Sets the current record's "id_pago_obl" value
 * @method TS_ANUL_PAGOS setFechaAnul()     Sets the current record's "fecha_anul" value
 * @method TS_ANUL_PAGOS setConcepto()      Sets the current record's "concepto" value
 * @method TS_ANUL_PAGOS setObservaciones() Sets the current record's "observaciones" value
 * @method TS_ANUL_PAGOS setUsuario()       Sets the current record's "usuario" value
 * @method TS_ANUL_PAGOS setFechaLog()      Sets the current record's "fecha_log" value
 * @method TS_ANUL_PAGOS setTSPAGOOBL()     Sets the current record's "TS_PAGO_OBL" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTS_ANUL_PAGOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TS_ANUL_PAGOS');
        $this->hasColumn('id_anul_pago', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pago_obl', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_anul', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('concepto', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('usuario', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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