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

/**
 * BaseCA_FORMULA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_formula
 * @property integer $id_tipo_calculo
 * @property integer $id_norma
 * @property string $formula
 * @property integer $id_etapa
 * @property string $nombre
 * @property CA_TIPO_CALCULO $CA_TIPO_CALCULO
 * 
 * @method integer         getIdFormula()       Returns the current record's "id_formula" value
 * @method integer         getIdTipoCalculo()   Returns the current record's "id_tipo_calculo" value
 * @method integer         getIdNorma()         Returns the current record's "id_norma" value
 * @method string          getFormula()         Returns the current record's "formula" value
 * @method integer         getIdEtapa()         Returns the current record's "id_etapa" value
 * @method string          getNombre()          Returns the current record's "nombre" value
 * @method CA_TIPO_CALCULO getCATIPOCALCULO()   Returns the current record's "CA_TIPO_CALCULO" value
 * @method CA_FORMULA      setIdFormula()       Sets the current record's "id_formula" value
 * @method CA_FORMULA      setIdTipoCalculo()   Sets the current record's "id_tipo_calculo" value
 * @method CA_FORMULA      setIdNorma()         Sets the current record's "id_norma" value
 * @method CA_FORMULA      setFormula()         Sets the current record's "formula" value
 * @method CA_FORMULA      setIdEtapa()         Sets the current record's "id_etapa" value
 * @method CA_FORMULA      setNombre()          Sets the current record's "nombre" value
 * @method CA_FORMULA      setCATIPOCALCULO()   Sets the current record's "CA_TIPO_CALCULO" value
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCA_FORMULA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_FORMULA');
        $this->hasColumn('id_formula', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_calculo', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_norma', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('formula', 'string', 1024, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1024,
             ));
        $this->hasColumn('id_etapa', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 64, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('CA_TIPO_CALCULO', array(
             'local' => 'id_tipo_calculo',
             'foreign' => 'id_tipo_calculo'));
    }
}