<?php

// Connection Component Binding
Doctrine_Manager::getInstance()->bindComponent('NO_FORMULA', 'doctrine');

/**
 * BaseNO_FORMULA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_formula
 * @property integer $id_concep_nomina
 * @property string $formula
 * @property string $nombre
 * @property string $cod_tipo
 * @property NO_CONCEP_NOMINA $NO_CONCEP_NOMINA
 * 
 * @method integer          getIdFormula()        Returns the current record's "id_formula" value
 * @method integer          getIdConcepNomina()   Returns the current record's "id_concep_nomina" value
 * @method string           getFormula()          Returns the current record's "formula" value
 * @method string           getNombre()           Returns the current record's "nombre" value
 * @method string           getCodTipo()          Returns the current record's "cod_tipo" value
 * @method NO_CONCEP_NOMINA getNOCONCEPNOMINA()   Returns the current record's "NO_CONCEP_NOMINA" value
 * @method NO_FORMULA       setIdFormula()        Sets the current record's "id_formula" value
 * @method NO_FORMULA       setIdConcepNomina()   Sets the current record's "id_concep_nomina" value
 * @method NO_FORMULA       setFormula()          Sets the current record's "formula" value
 * @method NO_FORMULA       setNombre()           Sets the current record's "nombre" value
 * @method NO_FORMULA       setCodTipo()          Sets the current record's "cod_tipo" value
 * @method NO_FORMULA       setNOCONCEPNOMINA()   Sets the current record's "NO_CONCEP_NOMINA" value
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseNO_FORMULA extends sfDoctrineRecord {

    public function setTableDefinition() {
        $this->setTableName('NO_FORMULA');
        $this->hasColumn('id_formula', 'integer', 8, array(
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => true,
            'length' => 8,
        ));
        $this->hasColumn('id_concep_nomina', 'integer', 8, array(
            'notnull' => true,
            'type' => 'integer',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 8,
        ));
        $this->hasColumn('formula', 'string', 4000, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
        $this->hasColumn('nombre', 'string', 64, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 64,
        ));
        $this->hasColumn('cod_tipo', 'string', 1, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 1,
        ));
        $this->hasColumn('formula_adic', 'string', 4000, array(
            'notnull' => true,
            'type' => 'string',
            'fixed' => 0,
            'unsigned' => false,
            'primary' => false,
            'length' => 4000,
        ));
    }

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

}
