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

/**
 * BaseCA_ENTIDAD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_entidad
 * @property string $nom_entidad
 * @property string $alias
 * @property Doctrine_Collection $CA_CAMPO
 * 
 * @method integer             getIdEntidad()   Returns the current record's "id_entidad" value
 * @method string              getNomEntidad()  Returns the current record's "nom_entidad" value
 * @method string              getAlias()       Returns the current record's "alias" value
 * @method Doctrine_Collection getCACAMPO()     Returns the current record's "CA_CAMPO" collection
 * @method CA_ENTIDAD          setIdEntidad()   Sets the current record's "id_entidad" value
 * @method CA_ENTIDAD          setNomEntidad()  Sets the current record's "nom_entidad" value
 * @method CA_ENTIDAD          setAlias()       Sets the current record's "alias" value
 * @method CA_ENTIDAD          setCACAMPO()     Sets the current record's "CA_CAMPO" 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_ENTIDAD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CA_ENTIDAD');
        $this->hasColumn('id_entidad', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('nom_entidad', '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->hasMany('CA_CAMPO', array(
             'local' => 'id_entidad',
             'foreign' => 'id_entidad'));
    }
}