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

/**
 * BaseCACO_SUPERVISOR_CONT
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_supervisor_cont
 * @property integer $id_mae_ter
 * @property integer $estado
 * @property string $correo_electronico
 * @property string $cargo
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $CACO_MODIFICA_SUPERVISOR
 * @property Doctrine_Collection $CACO_MODIFICA_SUPERVISOR_3
 * @property Doctrine_Collection $CACO_CONTRATO
 * 
 * @method integer              getIdSupervisorCont()           Returns the current record's "id_supervisor_cont" value
 * @method integer              getIdMaeTer()                   Returns the current record's "id_mae_ter" value
 * @method integer              getEstado()                     Returns the current record's "estado" value
 * @method string               getCorreoElectronico()          Returns the current record's "correo_electronico" value
 * @method string               getCargo()                      Returns the current record's "cargo" value
 * @method INTERCEROS           getINTERCEROS()                 Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection  getCACOMODIFICASUPERVISOR()     Returns the current record's "CACO_MODIFICA_SUPERVISOR" collection
 * @method Doctrine_Collection  getCACOMODIFICASUPERVISOR3()    Returns the current record's "CACO_MODIFICA_SUPERVISOR_3" collection
 * @method Doctrine_Collection  getCACOCONTRATO()               Returns the current record's "CACO_CONTRATO" collection
 * @method CACO_SUPERVISOR_CONT setIdSupervisorCont()           Sets the current record's "id_supervisor_cont" value
 * @method CACO_SUPERVISOR_CONT setIdMaeTer()                   Sets the current record's "id_mae_ter" value
 * @method CACO_SUPERVISOR_CONT setEstado()                     Sets the current record's "estado" value
 * @method CACO_SUPERVISOR_CONT setCorreoElectronico()          Sets the current record's "correo_electronico" value
 * @method CACO_SUPERVISOR_CONT setCargo()                      Sets the current record's "cargo" value
 * @method CACO_SUPERVISOR_CONT setINTERCEROS()                 Sets the current record's "INTERCEROS" value
 * @method CACO_SUPERVISOR_CONT setCACOMODIFICASUPERVISOR()     Sets the current record's "CACO_MODIFICA_SUPERVISOR" collection
 * @method CACO_SUPERVISOR_CONT setCACOMODIFICASUPERVISOR3()    Sets the current record's "CACO_MODIFICA_SUPERVISOR_3" collection
 * @method CACO_SUPERVISOR_CONT setCACOCONTRATO()               Sets the current record's "CACO_CONTRATO" collection
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCACO_SUPERVISOR_CONT extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CACO_SUPERVISOR_CONT');
        $this->hasColumn('id_supervisor_cont', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('correo_electronico', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('cargo', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
    }

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

        $this->hasMany('CACO_MODIFICA_SUPERVISOR', array(
             'local' => 'id_supervisor_cont',
             'foreign' => 'id_supervisor_ini'));

        $this->hasMany('CACO_MODIFICA_SUPERVISOR as CACO_MODIFICA_SUPERVISOR_3', array(
             'local' => 'id_supervisor_cont',
             'foreign' => 'id_supervisor_new'));

        $this->hasMany('CACO_CONTRATO', array(
             'local' => 'id_supervisor_cont',
             'foreign' => 'id_supervisor_cont'));
    }
}