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

/**
 * BaseRVC_ACTIVIDAD_OBLIGACION
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_actividad_obligacion
 * @property integer $id_formato_pago
 * @property integer $orden
 * @property string $descripcion
 * @property timestamp $fecha_log
 * @property string $usuario_log
 * @property RVC_FORMATO_PAGO $RVC_FORMATO_PAGO
 * @property Doctrine_Collection $RVC_ACTIVIDAD_ACCION
 * 
 * @method integer                  getIdActividadObligacion()   Returns the current record's "id_actividad_obligacion" value
 * @method integer                  getIdFormatoPago()           Returns the current record's "id_formato_pago" value
 * @method integer                  getOrden()                   Returns the current record's "orden" value
 * @method string                   getDescripcion()             Returns the current record's "descripcion" value
 * @method timestamp                getFechaLog()                Returns the current record's "fecha_log" value
 * @method string                   getUsuarioLog()              Returns the current record's "usuario_log" value
 * @method RVC_FORMATO_PAGO         getRVCFORMATOPAGO()          Returns the current record's "RVC_FORMATO_PAGO" value
 * @method Doctrine_Collection      getRVCACTIVIDADACCION()      Returns the current record's "RVC_ACTIVIDAD_ACCION" collection
 * @method RVC_ACTIVIDAD_OBLIGACION setIdActividadObligacion()   Sets the current record's "id_actividad_obligacion" value
 * @method RVC_ACTIVIDAD_OBLIGACION setIdFormatoPago()           Sets the current record's "id_formato_pago" value
 * @method RVC_ACTIVIDAD_OBLIGACION setOrden()                   Sets the current record's "orden" value
 * @method RVC_ACTIVIDAD_OBLIGACION setDescripcion()             Sets the current record's "descripcion" value
 * @method RVC_ACTIVIDAD_OBLIGACION setFechaLog()                Sets the current record's "fecha_log" value
 * @method RVC_ACTIVIDAD_OBLIGACION setUsuarioLog()              Sets the current record's "usuario_log" value
 * @method RVC_ACTIVIDAD_OBLIGACION setRVCFORMATOPAGO()          Sets the current record's "RVC_FORMATO_PAGO" value
 * @method RVC_ACTIVIDAD_OBLIGACION setRVCACTIVIDADACCION()      Sets the current record's "RVC_ACTIVIDAD_ACCION" collection
 * 
 * @package    ProyectoSchema
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseRVC_ACTIVIDAD_OBLIGACION extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('RVC_ACTIVIDAD_OBLIGACION');
        $this->hasColumn('id_actividad_obligacion', 'integer', 8, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_formato_pago', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('orden', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0 ',
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 4000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 4000,
             ));
        $this->hasColumn('fecha_log', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('usuario_log', 'string', 20, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('adjunto_anexo_actividades', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             )); 
    }

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

        $this->hasMany('RVC_ACTIVIDAD_ACCION', array(
             'local' => 'id_actividad_obligacion',
             'foreign' => 'id_actividad_obligacion'));
    }
}