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

/**
 * BaseCM_MOV_BANC
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_ts_bn
 * @property integer $id_ts_cb
 * @property integer $id_ts_mb
 * @property integer $id_ts_td
 * @property integer $numero_doc
 * @property timestamp $fecha
 * @property timestamp $fecha_proc
 * @property integer $id_mae_ter
 * @property decimal $valor
 * @property string $observaciones
 * @property string $afecta_pac
 * @property string $usuariolog
 * @property timestamp $fechalog
 * @property string $oficina
 * @property integer $id_mineral_cb
 * @property integer $consecutivo_mb
 * @property integer $estado
 * @property INTERCEROS $INTERCEROS
 * @property RE_MINERAL $RE_MINERAL
 * @property TS_BN $TS_BN
 * @property CM_CB $CM_CB
 * @property TS_MB $TS_MB
 * @property TS_TD $TS_TD
 * @property Doctrine_Collection $CM_ANU_MOV_BANC
 * 
 * @method integer             getId()              Returns the current record's "id" value
 * @method integer             getIdTsBn()          Returns the current record's "id_ts_bn" value
 * @method integer             getIdTsCb()          Returns the current record's "id_ts_cb" value
 * @method integer             getIdTsMb()          Returns the current record's "id_ts_mb" value
 * @method integer             getIdTsTd()          Returns the current record's "id_ts_td" value
 * @method integer             getNumeroDoc()       Returns the current record's "numero_doc" value
 * @method timestamp           getFecha()           Returns the current record's "fecha" value
 * @method timestamp           getFechaProc()       Returns the current record's "fecha_proc" value
 * @method integer             getIdMaeTer()        Returns the current record's "id_mae_ter" value
 * @method decimal             getValor()           Returns the current record's "valor" value
 * @method string              getObservaciones()   Returns the current record's "observaciones" value
 * @method string              getAfectaPac()       Returns the current record's "afecta_pac" value
 * @method string              getUsuariolog()      Returns the current record's "usuariolog" value
 * @method timestamp           getFechalog()        Returns the current record's "fechalog" value
 * @method string              getOficina()         Returns the current record's "oficina" value
 * @method integer             getIdMineralCb()     Returns the current record's "id_mineral_cb" value
 * @method integer             getConsecutivoMb()   Returns the current record's "consecutivo_mb" value
 * @method integer             getEstado()          Returns the current record's "estado" value
 * @method INTERCEROS          getINTERCEROS()      Returns the current record's "INTERCEROS" value
 * @method RE_MINERAL          getREMINERAL()       Returns the current record's "RE_MINERAL" value
 * @method TS_BN               getTSBN()            Returns the current record's "TS_BN" value
 * @method CM_CB               getCMCB()            Returns the current record's "CM_CB" value
 * @method TS_MB               getTSMB()            Returns the current record's "TS_MB" value
 * @method TS_TD               getTSTD()            Returns the current record's "TS_TD" value
 * @method Doctrine_Collection getCMANUMOVBANC()    Returns the current record's "CM_ANU_MOV_BANC" collection
 * @method CM_MOV_BANC         setId()              Sets the current record's "id" value
 * @method CM_MOV_BANC         setIdTsBn()          Sets the current record's "id_ts_bn" value
 * @method CM_MOV_BANC         setIdTsCb()          Sets the current record's "id_ts_cb" value
 * @method CM_MOV_BANC         setIdTsMb()          Sets the current record's "id_ts_mb" value
 * @method CM_MOV_BANC         setIdTsTd()          Sets the current record's "id_ts_td" value
 * @method CM_MOV_BANC         setNumeroDoc()       Sets the current record's "numero_doc" value
 * @method CM_MOV_BANC         setFecha()           Sets the current record's "fecha" value
 * @method CM_MOV_BANC         setFechaProc()       Sets the current record's "fecha_proc" value
 * @method CM_MOV_BANC         setIdMaeTer()        Sets the current record's "id_mae_ter" value
 * @method CM_MOV_BANC         setValor()           Sets the current record's "valor" value
 * @method CM_MOV_BANC         setObservaciones()   Sets the current record's "observaciones" value
 * @method CM_MOV_BANC         setAfectaPac()       Sets the current record's "afecta_pac" value
 * @method CM_MOV_BANC         setUsuariolog()      Sets the current record's "usuariolog" value
 * @method CM_MOV_BANC         setFechalog()        Sets the current record's "fechalog" value
 * @method CM_MOV_BANC         setOficina()         Sets the current record's "oficina" value
 * @method CM_MOV_BANC         setIdMineralCb()     Sets the current record's "id_mineral_cb" value
 * @method CM_MOV_BANC         setConsecutivoMb()   Sets the current record's "consecutivo_mb" value
 * @method CM_MOV_BANC         setEstado()          Sets the current record's "estado" value
 * @method CM_MOV_BANC         setINTERCEROS()      Sets the current record's "INTERCEROS" value
 * @method CM_MOV_BANC         setREMINERAL()       Sets the current record's "RE_MINERAL" value
 * @method CM_MOV_BANC         setTSBN()            Sets the current record's "TS_BN" value
 * @method CM_MOV_BANC         setCMCB()            Sets the current record's "CM_CB" value
 * @method CM_MOV_BANC         setTSMB()            Sets the current record's "TS_MB" value
 * @method CM_MOV_BANC         setTSTD()            Sets the current record's "TS_TD" value
 * @method CM_MOV_BANC         setCMANUMOVBANC()    Sets the current record's "CM_ANU_MOV_BANC" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCM_MOV_BANC extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CM_MOV_BANC');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_bn', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_cb', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_mb', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_ts_td', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('numero_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_proc', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('valor', 'decimal', 22, array(
             'notnull' => true,
             'type' => 'decimal',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 22,
             ));
        $this->hasColumn('observaciones', 'string', 3000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3000,
             ));
        $this->hasColumn('afecta_pac', 'string', 100, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('usuariolog', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fechalog', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('oficina', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('id_mineral_cb', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('consecutivo_mb', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1,
             ));
    }

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

        $this->hasOne('RE_MINERAL', array(
             'local' => 'id_mineral_cb',
             'foreign' => 'id_mineral'));

        $this->hasOne('TS_BN', array(
             'local' => 'id_ts_bn',
             'foreign' => 'id_bn'));

        $this->hasOne('CM_CB', array(
             'local' => 'id_ts_cb',
             'foreign' => 'id_cb'));

        $this->hasOne('TS_MB', array(
             'local' => 'id_ts_mb',
             'foreign' => 'id'));

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

        $this->hasMany('CM_ANU_MOV_BANC', array(
             'local' => 'id',
             'foreign' => 'id_mov_banc'));
    }
}