<?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_norma
 * @property integer $id_etapa
 * @property string $formula
 * @property CA_ETAPA $CA_ETAPA
 * @property CA_NORMA_CANON $CA_NORMA_CANON
 * 
 * @method integer        getIdFormula()      Returns the current record's "id_formula" value
 * @method integer        getIdNorma()        Returns the current record's "id_norma" value
 * @method integer        getIdEtapa()        Returns the current record's "id_etapa" value
 * @method string         getFormula()        Returns the current record's "formula" value
 * @method CA_ETAPA       getCAETAPA()        Returns the current record's "CA_ETAPA" value
 * @method CA_NORMA_CANON getCANORMACANON()   Returns the current record's "CA_NORMA_CANON" value
 * @method CA_FORMULA     setIdFormula()      Sets the current record's "id_formula" value
 * @method CA_FORMULA     setIdNorma()        Sets the current record's "id_norma" value
 * @method CA_FORMULA     setIdEtapa()        Sets the current record's "id_etapa" value
 * @method CA_FORMULA     setFormula()        Sets the current record's "formula" value
 * @method CA_FORMULA     setCAETAPA()        Sets the current record's "CA_ETAPA" value
 * @method CA_FORMULA     setCANORMACANON()   Sets the current record's "CA_NORMA_CANON" value
 * 
 * @package    canon
 * @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', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_norma', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_etapa', '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,
             ));
    }

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

        $this->hasOne('CA_NORMA_CANON', array(
             'local' => 'id_norma',
             'foreign' => 'id_norma'));
    }
}