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

/**
 * BaseCM_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 integer $id_caja_menor
 * @property CM_CAJA_MENOR $CM_CAJA_MENOR
 * @property CM_PAGO_OBL $CM_PAGO_OBL
 * @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 integer       getIdCajaMenor()   Returns the current record's "id_caja_menor" value
 * @method CM_CAJA_MENOR getCMCAJAMENOR()   Returns the current record's "CM_CAJA_MENOR" value
 * @method CM_PAGO_OBL   getCMPAGOOBL()     Returns the current record's "CM_PAGO_OBL" value
 * @method TS_PAGO_OBL   getTSPAGOOBL()     Returns the current record's "TS_PAGO_OBL" value
 * @method CM_ANUL_PAGOS setIdAnulPago()    Sets the current record's "id_anul_pago" value
 * @method CM_ANUL_PAGOS setIdPagoObl()     Sets the current record's "id_pago_obl" value
 * @method CM_ANUL_PAGOS setFechaAnul()     Sets the current record's "fecha_anul" value
 * @method CM_ANUL_PAGOS setConcepto()      Sets the current record's "concepto" value
 * @method CM_ANUL_PAGOS setObservaciones() Sets the current record's "observaciones" value
 * @method CM_ANUL_PAGOS setUsuario()       Sets the current record's "usuario" value
 * @method CM_ANUL_PAGOS setFechaLog()      Sets the current record's "fecha_log" value
 * @method CM_ANUL_PAGOS setIdCajaMenor()   Sets the current record's "id_caja_menor" value
 * @method CM_ANUL_PAGOS setCMCAJAMENOR()   Sets the current record's "CM_CAJA_MENOR" value
 * @method CM_ANUL_PAGOS setCMPAGOOBL()     Sets the current record's "CM_PAGO_OBL" value
 * @method CM_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 BaseCM_ANUL_PAGOS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_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,
             ));
        $this->hasColumn('id_caja_menor', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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

        $this->hasOne('CM_PAGO_OBL', array(
             'local' => 'id_pago_obl',
             'foreign' => 'id_pago_obl'));

        $this->hasOne('TS_PAGO_OBL', array(
             'local' => 'id_pago_obl',
             'foreign' => 'id_pago_obl'));
    }
}