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

/**
 * BasePR_TIPO_INGRE
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $codigo
 * @property string $descripcion
 * @property Doctrine_Collection $TS_GI
 * @property Doctrine_Collection $PR_NUME_INGRE
 * @property Doctrine_Collection $PR_NIVEL_INGRE
 * @property Doctrine_Collection $PR_GRUPO_INGRE
 * @property Doctrine_Collection $CA_DEBITO
 * 
 * @method integer             getId()             Returns the current record's "id" value
 * @method string              getCodigo()         Returns the current record's "codigo" value
 * @method string              getDescripcion()    Returns the current record's "descripcion" value
 * @method Doctrine_Collection getTSGI()           Returns the current record's "TS_GI" collection
 * @method Doctrine_Collection getPRNUMEINGRE()    Returns the current record's "PR_NUME_INGRE" collection
 * @method Doctrine_Collection getPRNIVELINGRE()   Returns the current record's "PR_NIVEL_INGRE" collection
 * @method Doctrine_Collection getPRGRUPOINGRE()   Returns the current record's "PR_GRUPO_INGRE" collection
 * @method Doctrine_Collection getCADEBITO()       Returns the current record's "CA_DEBITO" collection
 * @method PR_TIPO_INGRE       setId()             Sets the current record's "id" value
 * @method PR_TIPO_INGRE       setCodigo()         Sets the current record's "codigo" value
 * @method PR_TIPO_INGRE       setDescripcion()    Sets the current record's "descripcion" value
 * @method PR_TIPO_INGRE       setTSGI()           Sets the current record's "TS_GI" collection
 * @method PR_TIPO_INGRE       setPRNUMEINGRE()    Sets the current record's "PR_NUME_INGRE" collection
 * @method PR_TIPO_INGRE       setPRNIVELINGRE()   Sets the current record's "PR_NIVEL_INGRE" collection
 * @method PR_TIPO_INGRE       setPRGRUPOINGRE()   Sets the current record's "PR_GRUPO_INGRE" collection
 * @method PR_TIPO_INGRE       setCADEBITO()       Sets the current record's "CA_DEBITO" collection
 * 
 * @package    contratacion
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BasePR_TIPO_INGRE extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('PR_TIPO_INGRE');
        $this->hasColumn('id', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('codigo', 'string', 3, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 3,
             ));
        $this->hasColumn('descripcion', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
    }

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

        $this->hasMany('PR_NUME_INGRE', array(
             'local' => 'id',
             'foreign' => 'id_tipo_ingre'));

        $this->hasMany('PR_NIVEL_INGRE', array(
             'local' => 'id',
             'foreign' => 'id_tipo_ingre'));

        $this->hasMany('PR_GRUPO_INGRE', array(
             'local' => 'id',
             'foreign' => 'id_tipo_ingre'));

        $this->hasMany('CA_DEBITO', array(
             'local' => 'id',
             'foreign' => 'id_pr_tipo_ingre'));
    }
}