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

/**
 * BaseCCG_OPE_BD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_ope_bd
 * @property string $des_ope_bd
 * @property Doctrine_Collection $CCG_LOG
 * 
 * @method integer             getIdOpeBd()    Returns the current record's "id_ope_bd" value
 * @method string              getDesOpeBd()   Returns the current record's "des_ope_bd" value
 * @method Doctrine_Collection getCCGLOG()     Returns the current record's "CCG_LOG" collection
 * @method CCG_OPE_BD          setIdOpeBd()    Sets the current record's "id_ope_bd" value
 * @method CCG_OPE_BD          setDesOpeBd()   Sets the current record's "des_ope_bd" value
 * @method CCG_OPE_BD          setCCGLOG()     Sets the current record's "CCG_LOG" collection
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCCG_OPE_BD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CCG_OPE_BD');
        $this->hasColumn('id_ope_bd', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('des_ope_bd', 'string', 128, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 128,
             ));
    }

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