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

/**
 * BaseCOM_CIERRE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cierre
 * @property integer $id_pago_egreso
 * @property integer $id_anhos
 * @property timestamp $fecha_cierre
 * @property integer $no_folios
 * @property string $observaciones
 * @property COM_PAGO_EGRESO $COM_PAGO_EGRESO
 * 
 * @method integer         getIdCierre()        Returns the current record's "id_cierre" value
 * @method integer         getIdPagoEgreso()    Returns the current record's "id_pago_egreso" value
 * @method integer         getIdAnhos()         Returns the current record's "id_anhos" value
 * @method timestamp       getFechaCierre()     Returns the current record's "fecha_cierre" value
 * @method integer         getNoFolios()        Returns the current record's "no_folios" value
 * @method string          getObservaciones()   Returns the current record's "observaciones" value
 * @method COM_PAGO_EGRESO getCOMPAGOEGRESO()   Returns the current record's "COM_PAGO_EGRESO" value
 * @method COM_CIERRE      setIdCierre()        Sets the current record's "id_cierre" value
 * @method COM_CIERRE      setIdPagoEgreso()    Sets the current record's "id_pago_egreso" value
 * @method COM_CIERRE      setIdAnhos()         Sets the current record's "id_anhos" value
 * @method COM_CIERRE      setFechaCierre()     Sets the current record's "fecha_cierre" value
 * @method COM_CIERRE      setNoFolios()        Sets the current record's "no_folios" value
 * @method COM_CIERRE      setObservaciones()   Sets the current record's "observaciones" value
 * @method COM_CIERRE      setCOMPAGOEGRESO()   Sets the current record's "COM_PAGO_EGRESO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_CIERRE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_CIERRE');
        $this->hasColumn('id_cierre', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_pago_egreso', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_cierre', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('no_folios', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('observaciones', 'string', 500, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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