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

/**
 * BaseIN_CDP_CONT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cdp_cont
 * @property integer $id_contrato
 * @property integer $id_vigencia
 * @property integer $id_cen_op
 * @property integer $cdp
 * @property integer $vig_cdp
 * @property timestamp $fecha_cdp
 * @property decimal $valor_cdp
 * @property IN_CONTRATO $IN_CONTRATO
 * @property IN_CONTRATO $IN_CONTRATO_2
 * @property IN_CONTRATO $IN_CONTRATO_3
 * @property IN_CONTRATO $IN_CONTRATO_4
 * @property IN_CONTRATO $IN_CONTRATO_5
 * @property IN_CONTRATO $IN_CONTRATO_6
 * @property IN_CONTRATO $IN_CONTRATO_7
 * @property IN_CONTRATO $IN_CONTRATO_8
 * @property IN_CONTRATO $IN_CONTRATO_9
 * 
 * @method integer     getIdCdpCont()     Returns the current record's "id_cdp_cont" value
 * @method integer     getIdContrato()    Returns the current record's "id_contrato" value
 * @method integer     getIdVigencia()    Returns the current record's "id_vigencia" value
 * @method integer     getIdCenOp()       Returns the current record's "id_cen_op" value
 * @method integer     getCdp()           Returns the current record's "cdp" value
 * @method integer     getVigCdp()        Returns the current record's "vig_cdp" value
 * @method timestamp   getFechaCdp()      Returns the current record's "fecha_cdp" value
 * @method decimal     getValorCdp()      Returns the current record's "valor_cdp" value
 * @method IN_CONTRATO getINCONTRATO()    Returns the current record's "IN_CONTRATO" value
 * @method IN_CONTRATO getINCONTRATO2()   Returns the current record's "IN_CONTRATO_2" value
 * @method IN_CONTRATO getINCONTRATO3()   Returns the current record's "IN_CONTRATO_3" value
 * @method IN_CONTRATO getINCONTRATO4()   Returns the current record's "IN_CONTRATO_4" value
 * @method IN_CONTRATO getINCONTRATO5()   Returns the current record's "IN_CONTRATO_5" value
 * @method IN_CONTRATO getINCONTRATO6()   Returns the current record's "IN_CONTRATO_6" value
 * @method IN_CONTRATO getINCONTRATO7()   Returns the current record's "IN_CONTRATO_7" value
 * @method IN_CONTRATO getINCONTRATO8()   Returns the current record's "IN_CONTRATO_8" value
 * @method IN_CONTRATO getINCONTRATO9()   Returns the current record's "IN_CONTRATO_9" value
 * @method IN_CDP_CONT setIdCdpCont()     Sets the current record's "id_cdp_cont" value
 * @method IN_CDP_CONT setIdContrato()    Sets the current record's "id_contrato" value
 * @method IN_CDP_CONT setIdVigencia()    Sets the current record's "id_vigencia" value
 * @method IN_CDP_CONT setIdCenOp()       Sets the current record's "id_cen_op" value
 * @method IN_CDP_CONT setCdp()           Sets the current record's "cdp" value
 * @method IN_CDP_CONT setVigCdp()        Sets the current record's "vig_cdp" value
 * @method IN_CDP_CONT setFechaCdp()      Sets the current record's "fecha_cdp" value
 * @method IN_CDP_CONT setValorCdp()      Sets the current record's "valor_cdp" value
 * @method IN_CDP_CONT setINCONTRATO()    Sets the current record's "IN_CONTRATO" value
 * @method IN_CDP_CONT setINCONTRATO2()   Sets the current record's "IN_CONTRATO_2" value
 * @method IN_CDP_CONT setINCONTRATO3()   Sets the current record's "IN_CONTRATO_3" value
 * @method IN_CDP_CONT setINCONTRATO4()   Sets the current record's "IN_CONTRATO_4" value
 * @method IN_CDP_CONT setINCONTRATO5()   Sets the current record's "IN_CONTRATO_5" value
 * @method IN_CDP_CONT setINCONTRATO6()   Sets the current record's "IN_CONTRATO_6" value
 * @method IN_CDP_CONT setINCONTRATO7()   Sets the current record's "IN_CONTRATO_7" value
 * @method IN_CDP_CONT setINCONTRATO8()   Sets the current record's "IN_CONTRATO_8" value
 * @method IN_CDP_CONT setINCONTRATO9()   Sets the current record's "IN_CONTRATO_9" 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_CDP_CONT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_CDP_CONT');
        $this->hasColumn('id_cdp_cont', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_contrato', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cdp', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('vig_cdp', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_cdp', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('valor_cdp', 'decimal', 18, array(
             'notnull' => false,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_2', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_contrato'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_3', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_contrato'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_4', array(
             'local' => 'id_contrato',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_5', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_6', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_vigencia'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_7', array(
             'local' => 'id_contrato',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_8', array(
             'local' => 'id_vigencia',
             'foreign' => 'id_cen_op'));

        $this->hasOne('IN_CONTRATO as IN_CONTRATO_9', array(
             'local' => 'id_cen_op',
             'foreign' => 'id_cen_op'));
    }
}