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

/**
 * BaseCATEGORIA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_categoria
 * @property string $nombre
 * @property string $descripcion
 * @property Doctrine_Collection $SUBCATEGORIA
 * @property Doctrine_Collection $PREGUNTA
 * 
 * @method integer             getIdCategoria()  Returns the current record's "id_categoria" value
 * @method string              getNombre()       Returns the current record's "nombre" value
 * @method string              getDescripcion()  Returns the current record's "descripcion" value
 * @method Doctrine_Collection getSUBCATEGORIA() Returns the current record's "SUBCATEGORIA" collection
 * @method Doctrine_Collection getPREGUNTA()     Returns the current record's "PREGUNTA" collection
 * @method CATEGORIA           setIdCategoria()  Sets the current record's "id_categoria" value
 * @method CATEGORIA           setNombre()       Sets the current record's "nombre" value
 * @method CATEGORIA           setDescripcion()  Sets the current record's "descripcion" value
 * @method CATEGORIA           setSUBCATEGORIA() Sets the current record's "SUBCATEGORIA" collection
 * @method CATEGORIA           setPREGUNTA()     Sets the current record's "PREGUNTA" 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 BaseCATEGORIA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CATEGORIA');
        $this->hasColumn('id_categoria', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('nombre', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('descripcion', 'string', 300, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 300,
             ));
    }

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

        $this->hasMany('PREGUNTA', array(
             'local' => 'id_categoria',
             'foreign' => 'id_categoria'));
    }
}