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

/**
 * BaseRMN_TITULO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_titulo
 * @property string $cod_titulo
 * @property timestamp $fecha_contrato
 * @property timestamp $fecha_inscripcion_rmn
 * @property string $placa_rmn
 * @property integer $estado
 * @property timestamp $fecha_ter
 * @property string $motivo_ter
 * @property integer $id_novedad
 * @property string $cod_exp
 * @property Doctrine_Collection $CA_NOVEDAD
 * @property Doctrine_Collection $RMN_TITULO_PERSONA
 * @property Doctrine_Collection $RMN_TITULO_MODALIDAD
 * @property Doctrine_Collection $RMN_ANOTACION
 * @property Doctrine_Collection $IN_TITULO_COMPETENCIA
 * @property Doctrine_Collection $IN_TITULO_AREA
 * @property Doctrine_Collection $CA_TITULO_NORMA
 * @property Doctrine_Collection $CA_TITULO_ETAPA_HIST
 * @property Doctrine_Collection $CA_TITULO_ETAPA
 * @property Doctrine_Collection $CA_DET_LIQ_MIGRA
 * @property Doctrine_Collection $CA_DET_LIQ_CANON
 * 
 * @method integer             getIdTitulo()              Returns the current record's "id_titulo" value
 * @method string              getCodTitulo()             Returns the current record's "cod_titulo" value
 * @method timestamp           getFechaContrato()         Returns the current record's "fecha_contrato" value
 * @method timestamp           getFechaInscripcionRmn()   Returns the current record's "fecha_inscripcion_rmn" value
 * @method string              getPlacaRmn()              Returns the current record's "placa_rmn" value
 * @method integer             getEstado()                Returns the current record's "estado" value
 * @method timestamp           getFechaTer()              Returns the current record's "fecha_ter" value
 * @method string              getMotivoTer()             Returns the current record's "motivo_ter" value
 * @method integer             getIdNovedad()             Returns the current record's "id_novedad" value
 * @method string              getCodExp()                Returns the current record's "cod_exp" value
 * @method Doctrine_Collection getCANOVEDAD()             Returns the current record's "CA_NOVEDAD" collection
 * @method Doctrine_Collection getRMNTITULOPERSONA()      Returns the current record's "RMN_TITULO_PERSONA" collection
 * @method Doctrine_Collection getRMNTITULOMODALIDAD()    Returns the current record's "RMN_TITULO_MODALIDAD" collection
 * @method Doctrine_Collection getRMNANOTACION()          Returns the current record's "RMN_ANOTACION" collection
 * @method Doctrine_Collection getINTITULOCOMPETENCIA()   Returns the current record's "IN_TITULO_COMPETENCIA" collection
 * @method Doctrine_Collection getINTITULOAREA()          Returns the current record's "IN_TITULO_AREA" collection
 * @method Doctrine_Collection getCATITULONORMA()         Returns the current record's "CA_TITULO_NORMA" collection
 * @method Doctrine_Collection getCATITULOETAPAHIST()     Returns the current record's "CA_TITULO_ETAPA_HIST" collection
 * @method Doctrine_Collection getCATITULOETAPA()         Returns the current record's "CA_TITULO_ETAPA" collection
 * @method Doctrine_Collection getCADETLIQMIGRA()         Returns the current record's "CA_DET_LIQ_MIGRA" collection
 * @method Doctrine_Collection getCADETLIQCANON()         Returns the current record's "CA_DET_LIQ_CANON" collection
 * @method RMN_TITULO          setIdTitulo()              Sets the current record's "id_titulo" value
 * @method RMN_TITULO          setCodTitulo()             Sets the current record's "cod_titulo" value
 * @method RMN_TITULO          setFechaContrato()         Sets the current record's "fecha_contrato" value
 * @method RMN_TITULO          setFechaInscripcionRmn()   Sets the current record's "fecha_inscripcion_rmn" value
 * @method RMN_TITULO          setPlacaRmn()              Sets the current record's "placa_rmn" value
 * @method RMN_TITULO          setEstado()                Sets the current record's "estado" value
 * @method RMN_TITULO          setFechaTer()              Sets the current record's "fecha_ter" value
 * @method RMN_TITULO          setMotivoTer()             Sets the current record's "motivo_ter" value
 * @method RMN_TITULO          setIdNovedad()             Sets the current record's "id_novedad" value
 * @method RMN_TITULO          setCodExp()                Sets the current record's "cod_exp" value
 * @method RMN_TITULO          setCANOVEDAD()             Sets the current record's "CA_NOVEDAD" collection
 * @method RMN_TITULO          setRMNTITULOPERSONA()      Sets the current record's "RMN_TITULO_PERSONA" collection
 * @method RMN_TITULO          setRMNTITULOMODALIDAD()    Sets the current record's "RMN_TITULO_MODALIDAD" collection
 * @method RMN_TITULO          setRMNANOTACION()          Sets the current record's "RMN_ANOTACION" collection
 * @method RMN_TITULO          setINTITULOCOMPETENCIA()   Sets the current record's "IN_TITULO_COMPETENCIA" collection
 * @method RMN_TITULO          setINTITULOAREA()          Sets the current record's "IN_TITULO_AREA" collection
 * @method RMN_TITULO          setCATITULONORMA()         Sets the current record's "CA_TITULO_NORMA" collection
 * @method RMN_TITULO          setCATITULOETAPAHIST()     Sets the current record's "CA_TITULO_ETAPA_HIST" collection
 * @method RMN_TITULO          setCATITULOETAPA()         Sets the current record's "CA_TITULO_ETAPA" collection
 * @method RMN_TITULO          setCADETLIQMIGRA()         Sets the current record's "CA_DET_LIQ_MIGRA" collection
 * @method RMN_TITULO          setCADETLIQCANON()         Sets the current record's "CA_DET_LIQ_CANON" collection
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseRMN_TITULO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RMN_TITULO');
        $this->hasColumn('id_titulo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('cod_titulo', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('fecha_contrato', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_inscripcion_rmn', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('placa_rmn', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1 ',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_ter', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_ter', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('id_novedad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('cod_exp', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('upd_fecha_reg', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('CA_NOVEDAD', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('RMN_TITULO_PERSONA', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('RMN_TITULO_MODALIDAD', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('RMN_ANOTACION', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('IN_TITULO_COMPETENCIA', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('IN_TITULO_AREA', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('CA_TITULO_NORMA', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('CA_TITULO_ETAPA_HIST', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('CA_TITULO_ETAPA', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('CA_DET_LIQ_MIGRA', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));

        $this->hasMany('CA_DET_LIQ_CANON', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));
    }
}