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

/**
 * BaseRVC_APOYO_SUPERVISOR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_apoyo_supervisor
 * @property integer $id_mae_ter
 * @property string $cargo
 * @property string $correo
 * @property integer $estado
 * @property INTERCEROS $INTERCEROS
 * @property Doctrine_Collection $RVC_NOVEDAD_SUPR_APOY
 * @property Doctrine_Collection $RVC_NOVEDAD_SUPR_APOY_5
 * @property Doctrine_Collection $RVC_CONTRATO
 * 
 * @method integer              getIdApoyoSupervisor()       Returns the current record's "id_apoyo_supervisor" value
 * @method integer              getIdMaeTer()                Returns the current record's "id_mae_ter" value
 * @method string               getCargo()                   Returns the current record's "cargo" value
 * @method string               getCorreo()                  Returns the current record's "correo" value
 * @method integer              getEstado()                  Returns the current record's "estado" value
 * @method INTERCEROS           getINTERCEROS()              Returns the current record's "INTERCEROS" value
 * @method Doctrine_Collection  getRVCNOVEDADSUPRAPOY()      Returns the current record's "RVC_NOVEDAD_SUPR_APOY" collection
 * @method Doctrine_Collection  getRVCNOVEDADSUPRAPOY5()     Returns the current record's "RVC_NOVEDAD_SUPR_APOY_5" collection
 * @method Doctrine_Collection  getRVCCONTRATO()             Returns the current record's "RVC_CONTRATO" collection
 * @method RVC_APOYO_SUPERVISOR setIdApoyoSupervisor()       Sets the current record's "id_apoyo_supervisor" value
 * @method RVC_APOYO_SUPERVISOR setIdMaeTer()                Sets the current record's "id_mae_ter" value
 * @method RVC_APOYO_SUPERVISOR setCargo()                   Sets the current record's "cargo" value
 * @method RVC_APOYO_SUPERVISOR setCorreo()                  Sets the current record's "correo" value
 * @method RVC_APOYO_SUPERVISOR setEstado()                  Sets the current record's "estado" value
 * @method RVC_APOYO_SUPERVISOR setINTERCEROS()              Sets the current record's "INTERCEROS" value
 * @method RVC_APOYO_SUPERVISOR setRVCNOVEDADSUPRAPOY()      Sets the current record's "RVC_NOVEDAD_SUPR_APOY" collection
 * @method RVC_APOYO_SUPERVISOR setRVCNOVEDADSUPRAPOY5()     Sets the current record's "RVC_NOVEDAD_SUPR_APOY_5" collection
 * @method RVC_APOYO_SUPERVISOR setRVCCONTRATO()             Sets the current record's "RVC_CONTRATO" collection
 * 
 * @package    radicacionVirtualCuentas
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRVC_APOYO_SUPERVISOR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_APOYO_SUPERVISOR');
        $this->hasColumn('id_apoyo_supervisor', '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('cargo', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('correo', 'string', 200, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasMany('RVC_NOVEDAD_SUPR_APOY', array(
             'local' => 'id_apoyo_supervisor',
             'foreign' => 'id_apoyo_supervisor_old'));

        $this->hasMany('RVC_NOVEDAD_SUPR_APOY as RVC_NOVEDAD_SUPR_APOY_5', array(
             'local' => 'id_apoyo_supervisor',
             'foreign' => 'id_apoyo_supervisor_new'));

        $this->hasMany('RVC_CONTRATO', array(
             'local' => 'id_apoyo_supervisor',
             'foreign' => 'id_apoyo_supervisor'));
    }
}