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

/**
 * BaseTIPO_BIEN
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_tipo_bien
 * @property string $descripcion
 * @property Doctrine_Collection $PATRIMONIO
 * 
 * @method integer             getIdTipoBien()   Returns the current record's "id_tipo_bien" value
 * @method string              getDescripcion()  Returns the current record's "descripcion" value
 * @method Doctrine_Collection getPATRIMONIO()   Returns the current record's "PATRIMONIO" collection
 * @method TIPO_BIEN           setIdTipoBien()   Sets the current record's "id_tipo_bien" value
 * @method TIPO_BIEN           setDescripcion()  Sets the current record's "descripcion" value
 * @method TIPO_BIEN           setPATRIMONIO()   Sets the current record's "PATRIMONIO" 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_BIEN extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TIPO_BIEN');
        $this->hasColumn('id_tipo_bien', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 30, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 30,
             ));
    }

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