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

/**
 * BaseCOBERTURA_ACTIVIDAD
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_cobertura
 * @property string $descripcion
 * @property Doctrine_Collection $ACTIVIDAD
 * 
 * @method integer             getIdCobertura()  Returns the current record's "id_cobertura" value
 * @method string              getDescripcion()  Returns the current record's "descripcion" value
 * @method Doctrine_Collection getACTIVIDAD()    Returns the current record's "ACTIVIDAD" collection
 * @method COBERTURA_ACTIVIDAD setIdCobertura()  Sets the current record's "id_cobertura" value
 * @method COBERTURA_ACTIVIDAD setDescripcion()  Sets the current record's "descripcion" value
 * @method COBERTURA_ACTIVIDAD setACTIVIDAD()    Sets the current record's "ACTIVIDAD" collection
 * 
 * @package    nomina
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCOBERTURA_ACTIVIDAD extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('COBERTURA_ACTIVIDAD');
        $this->hasColumn('id_cobertura', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('descripcion', 'string', 50, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 50,
             ));
    }

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