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

/**
 * BaseESTADO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_est
 * @property string $descripcion
 * @property Doctrine_Collection $CREDENCIAL
 * 
 * @method integer             getIdEst()       Returns the current record's "id_est" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getCREDENCIAL()  Returns the current record's "CREDENCIAL" collection
 * @method ESTADO              setIdEst()       Sets the current record's "id_est" value
 * @method ESTADO              setDescripcion() Sets the current record's "descripcion" value
 * @method ESTADO              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 BaseESTADO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ESTADO');
        $this->hasColumn('id_est', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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