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

/**
 * BaseIN_TABLE_VIG_SEQ
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $nom_entidad
 * @property integer $id_cen_op
 * @property integer $id_vigencia
 * @property integer $seq
 * @property integer $id_tipo_movimiento
 * @property string $id_cia
 * @property CENTRO_OPERACION $CENTRO_OPERACION
 * @property IN_TIPO_MOVIMIENTO $IN_TIPO_MOVIMIENTO
 * 
 * @method string             getNomEntidad()         Returns the current record's "nom_entidad" value
 * @method integer            getIdCenOp()            Returns the current record's "id_cen_op" value
 * @method integer            getIdVigencia()         Returns the current record's "id_vigencia" value
 * @method integer            getSeq()                Returns the current record's "seq" value
 * @method integer            getIdTipoMovimiento()   Returns the current record's "id_tipo_movimiento" value
 * @method string             getIdCia()              Returns the current record's "id_cia" value
 * @method CENTRO_OPERACION   getCENTROOPERACION()    Returns the current record's "CENTRO_OPERACION" value
 * @method IN_TIPO_MOVIMIENTO getINTIPOMOVIMIENTO()   Returns the current record's "IN_TIPO_MOVIMIENTO" value
 * @method IN_TABLE_VIG_SEQ   setNomEntidad()         Sets the current record's "nom_entidad" value
 * @method IN_TABLE_VIG_SEQ   setIdCenOp()            Sets the current record's "id_cen_op" value
 * @method IN_TABLE_VIG_SEQ   setIdVigencia()         Sets the current record's "id_vigencia" value
 * @method IN_TABLE_VIG_SEQ   setSeq()                Sets the current record's "seq" value
 * @method IN_TABLE_VIG_SEQ   setIdTipoMovimiento()   Sets the current record's "id_tipo_movimiento" value
 * @method IN_TABLE_VIG_SEQ   setIdCia()              Sets the current record's "id_cia" value
 * @method IN_TABLE_VIG_SEQ   setCENTROOPERACION()    Sets the current record's "CENTRO_OPERACION" value
 * @method IN_TABLE_VIG_SEQ   setINTIPOMOVIMIENTO()   Sets the current record's "IN_TIPO_MOVIMIENTO" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_TABLE_VIG_SEQ extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_TABLE_VIG_SEQ');
        $this->hasColumn('nom_entidad', 'string', 32, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 32,
             ));
        $this->hasColumn('id_cen_op', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_vigencia', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('seq', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_movimiento', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_cia', 'string', 20, array(
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
    }

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

        $this->hasOne('IN_TIPO_MOVIMIENTO', array(
             'local' => 'id_tipo_movimiento',
             'foreign' => 'id_tipo_movimiento'));
    }
}