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

/**
 * BaseCA_FECHA_PAGO_HIST
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_fecha_pago_hist
 * @property integer $id_pago_historico
 * @property string $descripcion
 * @property timestamp $fecha
 * @property CA_PAGO_HISTORICO $CA_PAGO_HISTORICO
 * 
 * @method integer            getIdFechaPagoHist()    Returns the current record's "id_fecha_pago_hist" value
 * @method integer            getIdPagoHistorico()    Returns the current record's "id_pago_historico" value
 * @method string             getDescripcion()        Returns the current record's "descripcion" value
 * @method timestamp          getFecha()              Returns the current record's "fecha" value
 * @method CA_PAGO_HISTORICO  getCAPAGOHISTORICO()    Returns the current record's "CA_PAGO_HISTORICO" value
 * @method CA_FECHA_PAGO_HIST setIdFechaPagoHist()    Sets the current record's "id_fecha_pago_hist" value
 * @method CA_FECHA_PAGO_HIST setIdPagoHistorico()    Sets the current record's "id_pago_historico" value
 * @method CA_FECHA_PAGO_HIST setDescripcion()        Sets the current record's "descripcion" value
 * @method CA_FECHA_PAGO_HIST setFecha()              Sets the current record's "fecha" value
 * @method CA_FECHA_PAGO_HIST setCAPAGOHISTORICO()    Sets the current record's "CA_PAGO_HISTORICO" value
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_FECHA_PAGO_HIST extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_FECHA_PAGO_HIST');
        $this->hasColumn('id_fecha_pago_hist', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_pago_historico', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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