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

/**
 * BaseIN_FIRMA_CONTRATO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_firma_contrato
 * @property integer $id_cen_op
 * @property integer $id_mae_ter
 * @property string $cargo
 * @property timestamp $fecha_ini
 * @property timestamp $fecha_fin
 * @property integer $estado
 * @property integer $id_tipo_firma_contrato
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property INTERCEROS $INTERCEROS
 * @property IN_TIPO_FIRMA_CONTRATO $IN_TIPO_FIRMA_CONTRATO
 * 
 * @method integer                getIdFirmaContrato()        Returns the current record's "id_firma_contrato" value
 * @method integer                getIdCenOp()                Returns the current record's "id_cen_op" value
 * @method integer                getIdMaeTer()               Returns the current record's "id_mae_ter" value
 * @method string                 getCargo()                  Returns the current record's "cargo" value
 * @method timestamp              getFechaIni()               Returns the current record's "fecha_ini" value
 * @method timestamp              getFechaFin()               Returns the current record's "fecha_fin" value
 * @method integer                getEstado()                 Returns the current record's "estado" value
 * @method integer                getIdTipoFirmaContrato()    Returns the current record's "id_tipo_firma_contrato" value
 * @method CENTRO_OPERACION       getCENTROOPERACION()        Returns the current record's "CENTRO_OPERACION" value
 * @method INTERCEROS             getINTERCEROS()             Returns the current record's "INTERCEROS" value
 * @method IN_TIPO_FIRMA_CONTRATO getINTIPOFIRMACONTRATO()    Returns the current record's "IN_TIPO_FIRMA_CONTRATO" value
 * @method IN_FIRMA_CONTRATO      setIdFirmaContrato()        Sets the current record's "id_firma_contrato" value
 * @method IN_FIRMA_CONTRATO      setIdCenOp()                Sets the current record's "id_cen_op" value
 * @method IN_FIRMA_CONTRATO      setIdMaeTer()               Sets the current record's "id_mae_ter" value
 * @method IN_FIRMA_CONTRATO      setCargo()                  Sets the current record's "cargo" value
 * @method IN_FIRMA_CONTRATO      setFechaIni()               Sets the current record's "fecha_ini" value
 * @method IN_FIRMA_CONTRATO      setFechaFin()               Sets the current record's "fecha_fin" value
 * @method IN_FIRMA_CONTRATO      setEstado()                 Sets the current record's "estado" value
 * @method IN_FIRMA_CONTRATO      setIdTipoFirmaContrato()    Sets the current record's "id_tipo_firma_contrato" value
 * @method IN_FIRMA_CONTRATO      setCENTROOPERACION()        Sets the current record's "CENTRO_OPERACION" value
 * @method IN_FIRMA_CONTRATO      setINTERCEROS()             Sets the current record's "INTERCEROS" value
 * @method IN_FIRMA_CONTRATO      setINTIPOFIRMACONTRATO()    Sets the current record's "IN_TIPO_FIRMA_CONTRATO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_FIRMA_CONTRATO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_FIRMA_CONTRATO');
        $this->hasColumn('id_firma_contrato', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cargo', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('fecha_ini', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_tipo_firma_contrato', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('IN_TIPO_FIRMA_CONTRATO', array(
             'local' => 'id_tipo_firma_contrato',
             'foreign' => 'id_tipo_firma_contrato'));
    }
}