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

/**
 * BaseRVC_SUPERVISOR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_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_3
 * @property Doctrine_Collection $RVC_CONTRATO
 * 
 * @method integer             getIdSupervisor()            Returns the current record's "id_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 getRVCNOVEDADSUPRAPOY3()     Returns the current record's "RVC_NOVEDAD_SUPR_APOY_3" collection
 * @method Doctrine_Collection getRVCCONTRATO()             Returns the current record's "RVC_CONTRATO" collection
 * @method RVC_SUPERVISOR      setIdSupervisor()            Sets the current record's "id_supervisor" value
 * @method RVC_SUPERVISOR      setIdMaeTer()                Sets the current record's "id_mae_ter" value
 * @method RVC_SUPERVISOR      setCargo()                   Sets the current record's "cargo" value
 * @method RVC_SUPERVISOR      setCorreo()                  Sets the current record's "correo" value
 * @method RVC_SUPERVISOR      setEstado()                  Sets the current record's "estado" value
 * @method RVC_SUPERVISOR      setINTERCEROS()              Sets the current record's "INTERCEROS" value
 * @method RVC_SUPERVISOR      setRVCNOVEDADSUPRAPOY()      Sets the current record's "RVC_NOVEDAD_SUPR_APOY" collection
 * @method RVC_SUPERVISOR      setRVCNOVEDADSUPRAPOY3()     Sets the current record's "RVC_NOVEDAD_SUPR_APOY_3" collection
 * @method RVC_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_SUPERVISOR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_SUPERVISOR');
        $this->hasColumn('id_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_supervisor',
             'foreign' => 'id_supervisor_old'));

        $this->hasMany('RVC_NOVEDAD_SUPR_APOY as RVC_NOVEDAD_SUPR_APOY_3', array(
             'local' => 'id_supervisor',
             'foreign' => 'id_supervisor_new'));

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