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

/**
 * BaseMATERIAL_REPLICA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mat_rep
 * @property string $entrega_material
 * @property timestamp $fecha
 * @property integer $estrategia
 * @property string $recursos_utilizados
 * @property string $path_archivo
 * @property integer $id_actividad
 * @property ESTRATEGIA $ESTRATEGIA
 * @property Doctrine_Collection $MATERIAL_REPLICA_FUNCIONARIO
 * @property Doctrine_Collection $MATERIAL_REPLICA_FACILITADOR
 * 
 * @method integer             getIdMatRep()                     Returns the current record's "id_mat_rep" value
 * @method string              getEntregaMaterial()              Returns the current record's "entrega_material" value
 * @method timestamp           getFecha()                        Returns the current record's "fecha" value
 * @method integer             getEstrategia()                   Returns the current record's "estrategia" value
 * @method string              getRecursosUtilizados()           Returns the current record's "recursos_utilizados" value
 * @method string              getPathArchivo()                  Returns the current record's "path_archivo" value
 * @method integer             getIdActividad()                  Returns the current record's "id_actividad" value
 * @method ESTRATEGIA          getESTRATEGIA()                   Returns the current record's "ESTRATEGIA" value
 * @method Doctrine_Collection getMATERIALREPLICAFUNCIONARIO()   Returns the current record's "MATERIAL_REPLICA_FUNCIONARIO" collection
 * @method Doctrine_Collection getMATERIALREPLICAFACILITADOR()   Returns the current record's "MATERIAL_REPLICA_FACILITADOR" collection
 * @method MATERIAL_REPLICA    setIdMatRep()                     Sets the current record's "id_mat_rep" value
 * @method MATERIAL_REPLICA    setEntregaMaterial()              Sets the current record's "entrega_material" value
 * @method MATERIAL_REPLICA    setFecha()                        Sets the current record's "fecha" value
 * @method MATERIAL_REPLICA    setEstrategia()                   Sets the current record's "estrategia" value
 * @method MATERIAL_REPLICA    setRecursosUtilizados()           Sets the current record's "recursos_utilizados" value
 * @method MATERIAL_REPLICA    setPathArchivo()                  Sets the current record's "path_archivo" value
 * @method MATERIAL_REPLICA    setIdActividad()                  Sets the current record's "id_actividad" value
 * @method MATERIAL_REPLICA    setESTRATEGIA()                   Sets the current record's "ESTRATEGIA" value
 * @method MATERIAL_REPLICA    setMATERIALREPLICAFUNCIONARIO()   Sets the current record's "MATERIAL_REPLICA_FUNCIONARIO" collection
 * @method MATERIAL_REPLICA    setMATERIALREPLICAFACILITADOR()   Sets the current record's "MATERIAL_REPLICA_FACILITADOR" collection
 * 
 * @package    controlComisiones
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseMATERIAL_REPLICA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MATERIAL_REPLICA');
        $this->hasColumn('id_mat_rep', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('entrega_material', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('fecha', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('estrategia', 'integer', 10, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 10,
             ));
        $this->hasColumn('recursos_utilizados', 'string', 1000, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('path_archivo', 'string', 200, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 200,
             ));
        $this->hasColumn('id_actividad', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasMany('MATERIAL_REPLICA_FUNCIONARIO', array(
             'local' => 'id_mat_rep',
             'foreign' => 'id_material_replica'));

        $this->hasMany('MATERIAL_REPLICA_FACILITADOR', array(
             'local' => 'id_mat_rep',
             'foreign' => 'id_material_replica'));
    }
}