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

/**
 * BaseCA_CAMPO
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_campo
 * @property integer $id_entidad
 * @property string $nom_campo
 * @property string $alias
 * @property CA_ENTIDAD $CA_ENTIDAD
 * 
 * @method integer    getIdCampo()    Returns the current record's "id_campo" value
 * @method integer    getIdEntidad()  Returns the current record's "id_entidad" value
 * @method string     getNomCampo()   Returns the current record's "nom_campo" value
 * @method string     getAlias()      Returns the current record's "alias" value
 * @method CA_ENTIDAD getCAENTIDAD()  Returns the current record's "CA_ENTIDAD" value
 * @method CA_CAMPO   setIdCampo()    Sets the current record's "id_campo" value
 * @method CA_CAMPO   setIdEntidad()  Sets the current record's "id_entidad" value
 * @method CA_CAMPO   setNomCampo()   Sets the current record's "nom_campo" value
 * @method CA_CAMPO   setAlias()      Sets the current record's "alias" value
 * @method CA_CAMPO   setCAENTIDAD()  Sets the current record's "CA_ENTIDAD" 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_CAMPO extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_CAMPO');
        $this->hasColumn('id_campo', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_entidad', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('nom_campo', 'string', 64, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
        $this->hasColumn('alias', 'string', 64, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 64,
             ));
    }

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