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

/**
 * BaseESTADO_USUARIO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property string $id_est
 * @property string $descripcion
 * @property Doctrine_Collection $USUARIO
 * @property Doctrine_Collection $PERFIL
 * 
 * @method string              getIdEst()       Returns the current record's "id_est" value
 * @method string              getDescripcion() Returns the current record's "descripcion" value
 * @method Doctrine_Collection getUSUARIO()     Returns the current record's "USUARIO" collection
 * @method Doctrine_Collection getPERFIL()      Returns the current record's "PERFIL" collection
 * @method ESTADO_USUARIO      setIdEst()       Sets the current record's "id_est" value
 * @method ESTADO_USUARIO      setDescripcion() Sets the current record's "descripcion" value
 * @method ESTADO_USUARIO      setUSUARIO()     Sets the current record's "USUARIO" collection
 * @method ESTADO_USUARIO      setPERFIL()      Sets the current record's "PERFIL" 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_USUARIO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ESTADO_USUARIO');
        $this->hasColumn('id_est', 'string', 1, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 1,
             'unsigned' => false,
             'primary' => true,
             'length' => 1,
             ));
        $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('USUARIO', array(
             'local' => 'id_est',
             'foreign' => 'estado'));

        $this->hasMany('PERFIL', array(
             'local' => 'id_est',
             'foreign' => 'estado'));
    }
}