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

/**
 * BaseCA_MODALIDAD_NORMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_modalidad
 * @property integer $id_norma
 * @property integer $estado
 * @property CA_NORMA_CANON $CA_NORMA_CANON
 * @property RMN_MODALIDAD $RMN_MODALIDAD
 * 
 * @method integer            getIdModalidad()    Returns the current record's "id_modalidad" value
 * @method integer            getIdNorma()        Returns the current record's "id_norma" value
 * @method integer            getEstado()         Returns the current record's "estado" value
 * @method CA_NORMA_CANON     getCANORMACANON()   Returns the current record's "CA_NORMA_CANON" value
 * @method RMN_MODALIDAD      getRMNMODALIDAD()   Returns the current record's "RMN_MODALIDAD" value
 * @method CA_MODALIDAD_NORMA setIdModalidad()    Sets the current record's "id_modalidad" value
 * @method CA_MODALIDAD_NORMA setIdNorma()        Sets the current record's "id_norma" value
 * @method CA_MODALIDAD_NORMA setEstado()         Sets the current record's "estado" value
 * @method CA_MODALIDAD_NORMA setCANORMACANON()   Sets the current record's "CA_NORMA_CANON" value
 * @method CA_MODALIDAD_NORMA 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_MODALIDAD_NORMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_MODALIDAD_NORMA');
        $this->hasColumn('id_modalidad', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_norma', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 1,
             ));
    }

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

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