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

/**
 * BaseCACO_MODIFICA_SUPERVISOR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_modifica_supervisor
 * @property integer $id_contrato
 * @property integer $id_supervisor_ini
 * @property integer $id_supervisor_new
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * @property string $motivo_actualiza
 * @property CACO_CONTRATO $CACO_CONTRATO
 * @property CACO_SUPERVISOR_CONT $CACO_SUPERVISOR_CONT
 * @property CACO_SUPERVISOR_CONT $CACO_SUPERVISOR_CONT_3
 * 
 * @method integer                  getIdModificaSupervisor()   Returns the current record's "id_modifica_supervisor" value
 * @method integer                  getIdContrato()             Returns the current record's "id_contrato" value
 * @method integer                  getIdSupervisorIni()        Returns the current record's "id_supervisor_ini" value
 * @method integer                  getIdSupervisorNew()        Returns the current record's "id_supervisor_new" value
 * @method timestamp                getFechaLog()               Returns the current record's "fecha_log" value
 * @method string                   getUsuarioLog()             Returns the current record's "usuario_log" value
 * @method string                   getMotivoActualiza()        Returns the current record's "motivo_actualiza" value
 * @method CACO_CONTRATO            getCACOCONTRATO()           Returns the current record's "CACO_CONTRATO" value
 * @method CACO_SUPERVISOR_CONT     getCACOSUPERVISORCONT()     Returns the current record's "CACO_SUPERVISOR_CONT" value
 * @method CACO_SUPERVISOR_CONT     getCACOSUPERVISORCONT3()    Returns the current record's "CACO_SUPERVISOR_CONT_3" value
 * @method CACO_MODIFICA_SUPERVISOR setIdModificaSupervisor()   Sets the current record's "id_modifica_supervisor" value
 * @method CACO_MODIFICA_SUPERVISOR setIdContrato()             Sets the current record's "id_contrato" value
 * @method CACO_MODIFICA_SUPERVISOR setIdSupervisorIni()        Sets the current record's "id_supervisor_ini" value
 * @method CACO_MODIFICA_SUPERVISOR setIdSupervisorNew()        Sets the current record's "id_supervisor_new" value
 * @method CACO_MODIFICA_SUPERVISOR setFechaLog()               Sets the current record's "fecha_log" value
 * @method CACO_MODIFICA_SUPERVISOR setUsuarioLog()             Sets the current record's "usuario_log" value
 * @method CACO_MODIFICA_SUPERVISOR setMotivoActualiza()        Sets the current record's "motivo_actualiza" value
 * @method CACO_MODIFICA_SUPERVISOR setCACOCONTRATO()           Sets the current record's "CACO_CONTRATO" value
 * @method CACO_MODIFICA_SUPERVISOR setCACOSUPERVISORCONT()     Sets the current record's "CACO_SUPERVISOR_CONT" value
 * @method CACO_MODIFICA_SUPERVISOR setCACOSUPERVISORCONT3()    Sets the current record's "CACO_SUPERVISOR_CONT_3" value
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCACO_MODIFICA_SUPERVISOR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CACO_MODIFICA_SUPERVISOR');
        $this->hasColumn('id_modifica_supervisor', 'integer', 8, array(
             '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_supervisor_ini', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_supervisor_new', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('motivo_actualiza', 'string', 4000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
    }

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

        $this->hasOne('CACO_SUPERVISOR_CONT', array(
             'local' => 'id_supervisor_ini',
             'foreign' => 'id_supervisor_cont'));

        $this->hasOne('CACO_SUPERVISOR_CONT as CACO_SUPERVISOR_CONT_3', array(
             'local' => 'id_supervisor_new',
             'foreign' => 'id_supervisor_cont'));
    }
}