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

/**
 * BaseCN_MAE_BD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mae_bd
 * @property string $des_mae_bd
 * @property Doctrine_Collection $CN_TABLA_LOG
 * 
 * @method integer             getIdMaeBd()      Returns the current record's "id_mae_bd" value
 * @method string              getDesMaeBd()     Returns the current record's "des_mae_bd" value
 * @method Doctrine_Collection getCNTABLALOG()   Returns the current record's "CN_TABLA_LOG" collection
 * @method CN_MAE_BD           setIdMaeBd()      Sets the current record's "id_mae_bd" value
 * @method CN_MAE_BD           setDesMaeBd()     Sets the current record's "des_mae_bd" value
 * @method CN_MAE_BD           setCNTABLALOG()   Sets the current record's "CN_TABLA_LOG" collection
 * 
 * @package    Sofhouse
 * @subpackage model
 * @author     Software House
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCN_MAE_BD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CN_MAE_BD');
        $this->hasColumn('id_mae_bd', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('des_mae_bd', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
    }

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