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

/**
 * BaseCA_NOV_DEVOL_EXCED
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_nov_devol_exced
 * @property integer $id_mae_ter
 * @property timestamp $fecha_proceso
 * @property integer $num_doc
 * @property integer $id_ts_td
 * @property timestamp $fecha_doc
 * @property string $observaciones
 * @property integer $estado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property INTERCEROS $INTERCEROS
 * @property TS_TD $TS_TD
 * @property Doctrine_Collection $CA_EXCEDENTES
 * 
 * @method integer             getIdNovDevolExced()    Returns the current record's "id_nov_devol_exced" value
 * @method integer             getIdMaeTer()           Returns the current record's "id_mae_ter" value
 * @method timestamp           getFechaProceso()       Returns the current record's "fecha_proceso" value
 * @method integer             getNumDoc()             Returns the current record's "num_doc" value
 * @method integer             getIdTsTd()             Returns the current record's "id_ts_td" value
 * @method timestamp           getFechaDoc()           Returns the current record's "fecha_doc" value
 * @method string              getObservaciones()      Returns the current record's "observaciones" value
 * @method integer             getEstado()             Returns the current record's "estado" value
 * @method timestamp           getFechaAnu()           Returns the current record's "fecha_anu" value
 * @method string              getMotivoAnu()          Returns the current record's "motivo_anu" value
 * @method INTERCEROS          getINTERCEROS()         Returns the current record's "INTERCEROS" value
 * @method TS_TD               getTSTD()               Returns the current record's "TS_TD" value
 * @method Doctrine_Collection getCAEXCEDENTES()       Returns the current record's "CA_EXCEDENTES" collection
 * @method CA_NOV_DEVOL_EXCED  setIdNovDevolExced()    Sets the current record's "id_nov_devol_exced" value
 * @method CA_NOV_DEVOL_EXCED  setIdMaeTer()           Sets the current record's "id_mae_ter" value
 * @method CA_NOV_DEVOL_EXCED  setFechaProceso()       Sets the current record's "fecha_proceso" value
 * @method CA_NOV_DEVOL_EXCED  setNumDoc()             Sets the current record's "num_doc" value
 * @method CA_NOV_DEVOL_EXCED  setIdTsTd()             Sets the current record's "id_ts_td" value
 * @method CA_NOV_DEVOL_EXCED  setFechaDoc()           Sets the current record's "fecha_doc" value
 * @method CA_NOV_DEVOL_EXCED  setObservaciones()      Sets the current record's "observaciones" value
 * @method CA_NOV_DEVOL_EXCED  setEstado()             Sets the current record's "estado" value
 * @method CA_NOV_DEVOL_EXCED  setFechaAnu()           Sets the current record's "fecha_anu" value
 * @method CA_NOV_DEVOL_EXCED  setMotivoAnu()          Sets the current record's "motivo_anu" value
 * @method CA_NOV_DEVOL_EXCED  setINTERCEROS()         Sets the current record's "INTERCEROS" value
 * @method CA_NOV_DEVOL_EXCED  setTSTD()               Sets the current record's "TS_TD" value
 * @method CA_NOV_DEVOL_EXCED  setCAEXCEDENTES()       Sets the current record's "CA_EXCEDENTES" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_NOV_DEVOL_EXCED extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_NOV_DEVOL_EXCED');
        $this->hasColumn('id_nov_devol_exced', 'integer', 8, array(
             'notnull' => false,
             '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('fecha_proceso', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('num_doc', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_ts_td', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_doc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('observaciones', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 512, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 512,
             ));
    }

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

        $this->hasOne('TS_TD', array(
             'local' => 'id_ts_td',
             'foreign' => 'id'));

        $this->hasMany('CA_EXCEDENTES', array(
             'local' => 'id_nov_devol_exced',
             'foreign' => 'id_nov_devol_exced'));
    }
}