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

/**
 * BaseCOM_RESOLUCION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_resolucion
 * @property integer $id_comision
 * @property integer $no_resolucion
 * @property timestamp $fecha_resolucion
 * @property integer $id_anhos
 * @property integer $estado
 * @property timestamp $fecha_anulacion
 * @property string $motivo_anulacion
 * @property COM_COMISION $COM_COMISION
 * @property Doctrine_Collection $COM_CUENTA
 * 
 * @method integer             getIdResolucion()     Returns the current record's "id_resolucion" value
 * @method integer             getIdComision()       Returns the current record's "id_comision" value
 * @method integer             getNoResolucion()     Returns the current record's "no_resolucion" value
 * @method timestamp           getFechaResolucion()  Returns the current record's "fecha_resolucion" value
 * @method integer             getIdAnhos()          Returns the current record's "id_anhos" value
 * @method integer             getEstado()           Returns the current record's "estado" value
 * @method timestamp           getFechaAnulacion()   Returns the current record's "fecha_anulacion" value
 * @method string              getMotivoAnulacion()  Returns the current record's "motivo_anulacion" value
 * @method COM_COMISION        getCOMCOMISION()      Returns the current record's "COM_COMISION" value
 * @method Doctrine_Collection getCOMCUENTA()        Returns the current record's "COM_CUENTA" collection
 * @method COM_RESOLUCION      setIdResolucion()     Sets the current record's "id_resolucion" value
 * @method COM_RESOLUCION      setIdComision()       Sets the current record's "id_comision" value
 * @method COM_RESOLUCION      setNoResolucion()     Sets the current record's "no_resolucion" value
 * @method COM_RESOLUCION      setFechaResolucion()  Sets the current record's "fecha_resolucion" value
 * @method COM_RESOLUCION      setIdAnhos()          Sets the current record's "id_anhos" value
 * @method COM_RESOLUCION      setEstado()           Sets the current record's "estado" value
 * @method COM_RESOLUCION      setFechaAnulacion()   Sets the current record's "fecha_anulacion" value
 * @method COM_RESOLUCION      setMotivoAnulacion()  Sets the current record's "motivo_anulacion" value
 * @method COM_RESOLUCION      setCOMCOMISION()      Sets the current record's "COM_COMISION" value
 * @method COM_RESOLUCION      setCOMCUENTA()        Sets the current record's "COM_CUENTA" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOM_RESOLUCION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COM_RESOLUCION');
        $this->hasColumn('id_resolucion', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_comision', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('no_resolucion', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_resolucion', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_anhos', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anulacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anulacion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
    }

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

        $this->hasMany('COM_CUENTA', array(
             'local' => 'id_resolucion',
             'foreign' => 'id_resolucion'));
    }
}