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

/**
 * BaseCREDENCIAL
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $id_credencial
 * @property string $nombre
 * @property string $descripcion
 * @property integer $id_mod
 * @property integer $id_est
 * @property integer $id_tipo
 * @property integer $propietario
 * @property string $comando
 * @property integer $orden
 * @property ESTADO $ESTADO
 * @property MODULOS $MODULOS
 * @property TIPO_ACCION $TIPO_ACCION
 * 
 * @method integer     getId()            Returns the current record's "id" value
 * @method integer     getIdCredencial()  Returns the current record's "id_credencial" value
 * @method string      getNombre()        Returns the current record's "nombre" value
 * @method string      getDescripcion()   Returns the current record's "descripcion" value
 * @method integer     getIdMod()         Returns the current record's "id_mod" value
 * @method integer     getIdEst()         Returns the current record's "id_est" value
 * @method integer     getIdTipo()        Returns the current record's "id_tipo" value
 * @method integer     getPropietario()   Returns the current record's "propietario" value
 * @method string      getComando()       Returns the current record's "comando" value
 * @method integer     getOrden()         Returns the current record's "orden" value
 * @method ESTADO      getESTADO()        Returns the current record's "ESTADO" value
 * @method MODULOS     getMODULOS()       Returns the current record's "MODULOS" value
 * @method TIPO_ACCION getTIPOACCION()    Returns the current record's "TIPO_ACCION" value
 * @method CREDENCIAL  setId()            Sets the current record's "id" value
 * @method CREDENCIAL  setIdCredencial()  Sets the current record's "id_credencial" value
 * @method CREDENCIAL  setNombre()        Sets the current record's "nombre" value
 * @method CREDENCIAL  setDescripcion()   Sets the current record's "descripcion" value
 * @method CREDENCIAL  setIdMod()         Sets the current record's "id_mod" value
 * @method CREDENCIAL  setIdEst()         Sets the current record's "id_est" value
 * @method CREDENCIAL  setIdTipo()        Sets the current record's "id_tipo" value
 * @method CREDENCIAL  setPropietario()   Sets the current record's "propietario" value
 * @method CREDENCIAL  setComando()       Sets the current record's "comando" value
 * @method CREDENCIAL  setOrden()         Sets the current record's "orden" value
 * @method CREDENCIAL  setESTADO()        Sets the current record's "ESTADO" value
 * @method CREDENCIAL  setMODULOS()       Sets the current record's "MODULOS" value
 * @method CREDENCIAL  setTIPOACCION()    Sets the current record's "TIPO_ACCION" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCREDENCIAL extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CREDENCIAL');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'autoincrement' => true,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_credencial', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 150, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 150,
             ));
        $this->hasColumn('descripcion', 'string', 500, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 500,
             ));
        $this->hasColumn('id_mod', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_est', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('propietario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('comando', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('MODULOS', array(
             'local' => 'id_mod',
             'foreign' => 'id_mod'));

        $this->hasOne('TIPO_ACCION', array(
             'local' => 'id_tipo',
             'foreign' => 'id_tipo'));
    }
}