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

/**
 * BaseCA_ETAPA_MODALIDAD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_modalidad
 * @property integer $id_etapa
 * @property integer $anual_defecto
 * @property integer $anual_max
 * @property integer $orden
 * @property CA_ETAPA $CA_ETAPA
 * @property RMN_MODALIDAD $RMN_MODALIDAD
 * 
 * @method integer            getIdModalidad()   Returns the current record's "id_modalidad" value
 * @method integer            getIdEtapa()       Returns the current record's "id_etapa" value
 * @method integer            getAnualDefecto()  Returns the current record's "anual_defecto" value
 * @method integer            getAnualMax()      Returns the current record's "anual_max" value
 * @method integer            getOrden()         Returns the current record's "orden" value
 * @method CA_ETAPA           getCAETAPA()       Returns the current record's "CA_ETAPA" value
 * @method RMN_MODALIDAD      getRMNMODALIDAD()  Returns the current record's "RMN_MODALIDAD" value
 * @method CA_ETAPA_MODALIDAD setIdModalidad()   Sets the current record's "id_modalidad" value
 * @method CA_ETAPA_MODALIDAD setIdEtapa()       Sets the current record's "id_etapa" value
 * @method CA_ETAPA_MODALIDAD setAnualDefecto()  Sets the current record's "anual_defecto" value
 * @method CA_ETAPA_MODALIDAD setAnualMax()      Sets the current record's "anual_max" value
 * @method CA_ETAPA_MODALIDAD setOrden()         Sets the current record's "orden" value
 * @method CA_ETAPA_MODALIDAD setCAETAPA()       Sets the current record's "CA_ETAPA" value
 * @method CA_ETAPA_MODALIDAD setRMNMODALIDAD()  Sets the current record's "RMN_MODALIDAD" 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_ETAPA_MODALIDAD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_ETAPA_MODALIDAD');
        $this->hasColumn('id_modalidad', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_etapa', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('anual_defecto', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('anual_max', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('RMN_MODALIDAD', array(
             'local' => 'id_modalidad',
             'foreign' => 'id_modalidad'));
    }
}