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

/**
 * BaseMATERIAL_REPLICA_FACILITADOR
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_mat_rep_fac
 * @property integer $id_material_replica
 * @property integer $id_tipo_doc
 * @property string $num_doc
 * @property MATERIAL_REPLICA $MATERIAL_REPLICA
 * 
 * @method integer                      getIdMatRepFac()         Returns the current record's "id_mat_rep_fac" value
 * @method integer                      getIdMaterialReplica()   Returns the current record's "id_material_replica" value
 * @method integer                      getIdTipoDoc()           Returns the current record's "id_tipo_doc" value
 * @method string                       getNumDoc()              Returns the current record's "num_doc" value
 * @method MATERIAL_REPLICA             getMATERIALREPLICA()     Returns the current record's "MATERIAL_REPLICA" value
 * @method MATERIAL_REPLICA_FACILITADOR setIdMatRepFac()         Sets the current record's "id_mat_rep_fac" value
 * @method MATERIAL_REPLICA_FACILITADOR setIdMaterialReplica()   Sets the current record's "id_material_replica" value
 * @method MATERIAL_REPLICA_FACILITADOR setIdTipoDoc()           Sets the current record's "id_tipo_doc" value
 * @method MATERIAL_REPLICA_FACILITADOR setNumDoc()              Sets the current record's "num_doc" value
 * @method MATERIAL_REPLICA_FACILITADOR setMATERIALREPLICA()     Sets the current record's "MATERIAL_REPLICA" value
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseMATERIAL_REPLICA_FACILITADOR extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('MATERIAL_REPLICA_FACILITADOR');
        $this->hasColumn('id_mat_rep_fac', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_material_replica', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('num_doc', 'string', 20, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
    }

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