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

/**
 * BaseCA_ETAPA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_etapa
 * @property string $nombre
 * @property string $descripcion
 * @property string $abreviacion
 * @property Doctrine_Collection $CA_TITULO_ETAPA
 * @property Doctrine_Collection $CA_FORMULA
 * @property Doctrine_Collection $CA_ETAPA_MODALIDAD
 * @property Doctrine_Collection $CA_DET_LIQ_MIGRA
 * @property Doctrine_Collection $CA_DET_LIQ_CANON
 * 
 * @method integer             getIdEtapa()            Returns the current record's "id_etapa" value
 * @method string              getNombre()             Returns the current record's "nombre" value
 * @method string              getDescripcion()        Returns the current record's "descripcion" value
 * @method string              getAbreviacion()        Returns the current record's "abreviacion" value
 * @method Doctrine_Collection getCATITULOETAPA()      Returns the current record's "CA_TITULO_ETAPA" collection
 * @method Doctrine_Collection getCAFORMULA()          Returns the current record's "CA_FORMULA" collection
 * @method Doctrine_Collection getCAETAPAMODALIDAD()   Returns the current record's "CA_ETAPA_MODALIDAD" collection
 * @method Doctrine_Collection getCADETLIQMIGRA()      Returns the current record's "CA_DET_LIQ_MIGRA" collection
 * @method Doctrine_Collection getCADETLIQCANON()      Returns the current record's "CA_DET_LIQ_CANON" collection
 * @method CA_ETAPA            setIdEtapa()            Sets the current record's "id_etapa" value
 * @method CA_ETAPA            setNombre()             Sets the current record's "nombre" value
 * @method CA_ETAPA            setDescripcion()        Sets the current record's "descripcion" value
 * @method CA_ETAPA            setAbreviacion()        Sets the current record's "abreviacion" value
 * @method CA_ETAPA            setCATITULOETAPA()      Sets the current record's "CA_TITULO_ETAPA" collection
 * @method CA_ETAPA            setCAFORMULA()          Sets the current record's "CA_FORMULA" collection
 * @method CA_ETAPA            setCAETAPAMODALIDAD()   Sets the current record's "CA_ETAPA_MODALIDAD" collection
 * @method CA_ETAPA            setCADETLIQMIGRA()      Sets the current record's "CA_DET_LIQ_MIGRA" collection
 * @method CA_ETAPA            setCADETLIQCANON()      Sets the current record's "CA_DET_LIQ_CANON" collection
 * 
 * @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 extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_ETAPA');
        $this->hasColumn('id_etapa', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nombre', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
        $this->hasColumn('descripcion', 'string', 256, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 256,
             ));
        $this->hasColumn('abreviacion', 'string', 10, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
    }

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

        $this->hasMany('CA_FORMULA', array(
             'local' => 'id_etapa',
             'foreign' => 'id_etapa'));

        $this->hasMany('CA_ETAPA_MODALIDAD', array(
             'local' => 'id_etapa',
             'foreign' => 'id_etapa'));

        $this->hasMany('CA_DET_LIQ_MIGRA', array(
             'local' => 'id_etapa',
             'foreign' => 'id_etapa'));

        $this->hasMany('CA_DET_LIQ_CANON', array(
             'local' => 'id_etapa',
             'foreign' => 'id_etapa'));
    }
}