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

/**
 * BaseIN_TITULO_AREA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_area_titulo
 * @property integer $id_titulo
 * @property decimal $area
 * @property timestamp $fecha_asignacion
 * @property timestamp $fecha_fin
 * @property integer $estado
 * @property integer $id_novedad
 * @property integer $actual
 * @property integer $por_aprobar
 * @property CA_NOVEDAD $CA_NOVEDAD
 * @property RMN_TITULO $RMN_TITULO
 * 
 * @method integer        getIdAreaTitulo()     Returns the current record's "id_area_titulo" value
 * @method integer        getIdTitulo()         Returns the current record's "id_titulo" value
 * @method decimal        getArea()             Returns the current record's "area" value
 * @method timestamp      getFechaAsignacion()  Returns the current record's "fecha_asignacion" value
 * @method timestamp      getFechaFin()         Returns the current record's "fecha_fin" value
 * @method integer        getEstado()           Returns the current record's "estado" value
 * @method integer        getIdNovedad()        Returns the current record's "id_novedad" value
 * @method integer        getActual()           Returns the current record's "actual" value
 * @method integer        getPorAprobar()       Returns the current record's "por_aprobar" value
 * @method CA_NOVEDAD     getCANOVEDAD()        Returns the current record's "CA_NOVEDAD" value
 * @method RMN_TITULO     getRMNTITULO()        Returns the current record's "RMN_TITULO" value
 * @method IN_TITULO_AREA setIdAreaTitulo()     Sets the current record's "id_area_titulo" value
 * @method IN_TITULO_AREA setIdTitulo()         Sets the current record's "id_titulo" value
 * @method IN_TITULO_AREA setArea()             Sets the current record's "area" value
 * @method IN_TITULO_AREA setFechaAsignacion()  Sets the current record's "fecha_asignacion" value
 * @method IN_TITULO_AREA setFechaFin()         Sets the current record's "fecha_fin" value
 * @method IN_TITULO_AREA setEstado()           Sets the current record's "estado" value
 * @method IN_TITULO_AREA setIdNovedad()        Sets the current record's "id_novedad" value
 * @method IN_TITULO_AREA setActual()           Sets the current record's "actual" value
 * @method IN_TITULO_AREA setPorAprobar()       Sets the current record's "por_aprobar" value
 * @method IN_TITULO_AREA setCANOVEDAD()        Sets the current record's "CA_NOVEDAD" value
 * @method IN_TITULO_AREA setRMNTITULO()        Sets the current record's "RMN_TITULO" value
 * 
 * @package    canon
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_TITULO_AREA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_TITULO_AREA');
        $this->hasColumn('id_area_titulo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_titulo', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('area', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
        $this->hasColumn('fecha_asignacion', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('id_novedad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('actual', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
         $this->hasColumn('area_total', 'decimal', 18, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 18,
             ));
    }

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

        $this->hasOne('RMN_TITULO', array(
             'local' => 'id_titulo',
             'foreign' => 'id_titulo'));
    }
}