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

/**
 * BaseTARIFAS_TAXIS
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $descripcion
 * @property integer $tarifa
 * @property integer $estado
 * @property Doctrine_Collection $TARIFAS_DESTINO
 * 
 * @method integer             getId()              Returns the current record's "id" value
 * @method string              getDescripcion()     Returns the current record's "descripcion" value
 * @method integer             getTarifa()          Returns the current record's "tarifa" value
 * @method integer             getEstado()          Returns the current record's "estado" value
 * @method Doctrine_Collection getTARIFASDESTINO()  Returns the current record's "TARIFAS_DESTINO" collection
 * @method TARIFAS_TAXIS       setId()              Sets the current record's "id" value
 * @method TARIFAS_TAXIS       setDescripcion()     Sets the current record's "descripcion" value
 * @method TARIFAS_TAXIS       setTarifa()          Sets the current record's "tarifa" value
 * @method TARIFAS_TAXIS       setEstado()          Sets the current record's "estado" value
 * @method TARIFAS_TAXIS       setTARIFASDESTINO()  Sets the current record's "TARIFAS_DESTINO" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseTARIFAS_TAXIS extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('TARIFAS_TAXIS');
        $this->hasColumn('id', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 100, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 100,
             ));
        $this->hasColumn('tarifa', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1
                ',
             'primary' => false,
             'length' => 8,
             ));
    }

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