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

/**
 * BaseTIPO_ACCION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo
 * @property string $descripcion
 * @property Doctrine_Collection $CREDENCIAL
 * 
 * @method integer             getIdTipo()      Returns the current record's "id_tipo" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getCREDENCIAL()  Returns the current record's "CREDENCIAL" collection
 * @method TIPO_ACCION         setIdTipo()      Sets the current record's "id_tipo" value
 * @method TIPO_ACCION         setDescripcion() Sets the current record's "descripcion" value
 * @method TIPO_ACCION         setCREDENCIAL()  Sets the current record's "CREDENCIAL" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTIPO_ACCION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TIPO_ACCION');
        $this->hasColumn('id_tipo', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('CREDENCIAL', array(
             'local' => 'id_tipo',
             'foreign' => 'id_tipo'));
    }
}