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

/**
 * BaseIN_ASIGNACION_TOMA
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id_asignacion_toma
 * @property integer $id_toma_inventario
 * @property timestamp $fecha_fin
 * @property timestamp $fecha_inicio
 * @property integer $id_mae_ter
 * @property string $descripcion
 * @property integer $estado
 * @property integer $anulado
 * @property timestamp $fecha_anu
 * @property string $motivo_anu
 * @property integer $id_mae_ter_res
 * @property integer $id_espacio
 * @property integer $id_tipo_almacenamiento
 * @property IN_TOMA_INVENTARIO $IN_TOMA_INVENTARIO
 * @property INTERCEROS $INTERCEROS
 * @property IN_ESPACIO $IN_ESPACIO
 * @property INTERCEROS $INTERCEROS_4
 * @property IN_TIPO_ALMACENAMIENTO $IN_TIPO_ALMACENAMIENTO
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION
 * 
 * @method integer                getIdAsignacionToma()            Returns the current record's "id_asignacion_toma" value
 * @method integer                getIdTomaInventario()            Returns the current record's "id_toma_inventario" value
 * @method timestamp              getFechaFin()                    Returns the current record's "fecha_fin" value
 * @method timestamp              getFechaInicio()                 Returns the current record's "fecha_inicio" value
 * @method integer                getIdMaeTer()                    Returns the current record's "id_mae_ter" value
 * @method string                 getDescripcion()                 Returns the current record's "descripcion" value
 * @method integer                getEstado()                      Returns the current record's "estado" value
 * @method integer                getAnulado()                     Returns the current record's "anulado" value
 * @method timestamp              getFechaAnu()                    Returns the current record's "fecha_anu" value
 * @method string                 getMotivoAnu()                   Returns the current record's "motivo_anu" value
 * @method integer                getIdMaeTerRes()                 Returns the current record's "id_mae_ter_res" value
 * @method integer                getIdEspacio()                   Returns the current record's "id_espacio" value
 * @method integer                getIdTipoAlmacenamiento()        Returns the current record's "id_tipo_almacenamiento" value
 * @method IN_TOMA_INVENTARIO     getINTOMAINVENTARIO()            Returns the current record's "IN_TOMA_INVENTARIO" value
 * @method INTERCEROS             getINTERCEROS()                  Returns the current record's "INTERCEROS" value
 * @method IN_ESPACIO             getINESPACIO()                   Returns the current record's "IN_ESPACIO" value
 * @method INTERCEROS             getINTERCEROS4()                 Returns the current record's "INTERCEROS_4" value
 * @method IN_TIPO_ALMACENAMIENTO getINTIPOALMACENAMIENTO()        Returns the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method Doctrine_Collection    getINDETALLEASIGNACIONTEMPO()    Returns the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method Doctrine_Collection    getINDETALLEASIGNACION()         Returns the current record's "IN_DETALLE_ASIGNACION" collection
 * @method IN_ASIGNACION_TOMA     setIdAsignacionToma()            Sets the current record's "id_asignacion_toma" value
 * @method IN_ASIGNACION_TOMA     setIdTomaInventario()            Sets the current record's "id_toma_inventario" value
 * @method IN_ASIGNACION_TOMA     setFechaFin()                    Sets the current record's "fecha_fin" value
 * @method IN_ASIGNACION_TOMA     setFechaInicio()                 Sets the current record's "fecha_inicio" value
 * @method IN_ASIGNACION_TOMA     setIdMaeTer()                    Sets the current record's "id_mae_ter" value
 * @method IN_ASIGNACION_TOMA     setDescripcion()                 Sets the current record's "descripcion" value
 * @method IN_ASIGNACION_TOMA     setEstado()                      Sets the current record's "estado" value
 * @method IN_ASIGNACION_TOMA     setAnulado()                     Sets the current record's "anulado" value
 * @method IN_ASIGNACION_TOMA     setFechaAnu()                    Sets the current record's "fecha_anu" value
 * @method IN_ASIGNACION_TOMA     setMotivoAnu()                   Sets the current record's "motivo_anu" value
 * @method IN_ASIGNACION_TOMA     setIdMaeTerRes()                 Sets the current record's "id_mae_ter_res" value
 * @method IN_ASIGNACION_TOMA     setIdEspacio()                   Sets the current record's "id_espacio" value
 * @method IN_ASIGNACION_TOMA     setIdTipoAlmacenamiento()        Sets the current record's "id_tipo_almacenamiento" value
 * @method IN_ASIGNACION_TOMA     setINTOMAINVENTARIO()            Sets the current record's "IN_TOMA_INVENTARIO" value
 * @method IN_ASIGNACION_TOMA     setINTERCEROS()                  Sets the current record's "INTERCEROS" value
 * @method IN_ASIGNACION_TOMA     setINESPACIO()                   Sets the current record's "IN_ESPACIO" value
 * @method IN_ASIGNACION_TOMA     setINTERCEROS4()                 Sets the current record's "INTERCEROS_4" value
 * @method IN_ASIGNACION_TOMA     setINTIPOALMACENAMIENTO()        Sets the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_ASIGNACION_TOMA     setINDETALLEASIGNACIONTEMPO()    Sets the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method IN_ASIGNACION_TOMA     setINDETALLEASIGNACION()         Sets the current record's "IN_DETALLE_ASIGNACION" collection_TEMPO
 * @property Doctrine_Collection $IN_DETALLE_ASIGNACION
 * 
 * @method integer                getIdAsignacionToma()            Returns the current record's "id_asignacion_toma" value
 * @method integer                getIdTomaInventario()            Returns the current record's "id_toma_inventario" value
 * @method timestamp              getFechaFin()                    Returns the current record's "fecha_fin" value
 * @method timestamp              getFechaInicio()                 Returns the current record's "fecha_inicio" value
 * @method integer                getIdMaeTer()                    Returns the current record's "id_mae_ter" value
 * @method string                 getDescripcion()                 Returns the current record's "descripcion" value
 * @method integer                getEstado()                      Returns the current record's "estado" value
 * @method integer                getAnulado()                     Returns the current record's "anulado" value
 * @method timestamp              getFechaAnu()                    Returns the current record's "fecha_anu" value
 * @method string                 getMotivoAnu()                   Returns the current record's "motivo_anu" value
 * @method integer                getIdMaeTerRes()                 Returns the current record's "id_mae_ter_res" value
 * @method integer                getIdEspacio()                   Returns the current record's "id_espacio" value
 * @method integer                getIdTipoAlmacenamiento()        Returns the current record's "id_tipo_almacenamiento" value
 * @method IN_TOMA_INVENTARIO     getINTOMAINVENTARIO()            Returns the current record's "IN_TOMA_INVENTARIO" value
 * @method INTERCEROS             getINTERCEROS()                  Returns the current record's "INTERCEROS" value
 * @method IN_ESPACIO             getINESPACIO()                   Returns the current record's "IN_ESPACIO" value
 * @method INTERCEROS             getINTERCEROS4()                 Returns the current record's "INTERCEROS_4" value
 * @method IN_TIPO_ALMACENAMIENTO getINTIPOALMACENAMIENTO()        Returns the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method Doctrine_Collection    getINDETALLEASIGNACIONTEMPO()    Returns the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method Doctrine_Collection    getINDETALLEASIGNACION()         Returns the current record's "IN_DETALLE_ASIGNACION" collection
 * @method IN_ASIGNACION_TOMA     setIdAsignacionToma()            Sets the current record's "id_asignacion_toma" value
 * @method IN_ASIGNACION_TOMA     setIdTomaInventario()            Sets the current record's "id_toma_inventario" value
 * @method IN_ASIGNACION_TOMA     setFechaFin()                    Sets the current record's "fecha_fin" value
 * @method IN_ASIGNACION_TOMA     setFechaInicio()                 Sets the current record's "fecha_inicio" value
 * @method IN_ASIGNACION_TOMA     setIdMaeTer()                    Sets the current record's "id_mae_ter" value
 * @method IN_ASIGNACION_TOMA     setDescripcion()                 Sets the current record's "descripcion" value
 * @method IN_ASIGNACION_TOMA     setEstado()                      Sets the current record's "estado" value
 * @method IN_ASIGNACION_TOMA     setAnulado()                     Sets the current record's "anulado" value
 * @method IN_ASIGNACION_TOMA     setFechaAnu()                    Sets the current record's "fecha_anu" value
 * @method IN_ASIGNACION_TOMA     setMotivoAnu()                   Sets the current record's "motivo_anu" value
 * @method IN_ASIGNACION_TOMA     setIdMaeTerRes()                 Sets the current record's "id_mae_ter_res" value
 * @method IN_ASIGNACION_TOMA     setIdEspacio()                   Sets the current record's "id_espacio" value
 * @method IN_ASIGNACION_TOMA     setIdTipoAlmacenamiento()        Sets the current record's "id_tipo_almacenamiento" value
 * @method IN_ASIGNACION_TOMA     setINTOMAINVENTARIO()            Sets the current record's "IN_TOMA_INVENTARIO" value
 * @method IN_ASIGNACION_TOMA     setINTERCEROS()                  Sets the current record's "INTERCEROS" value
 * @method IN_ASIGNACION_TOMA     setINESPACIO()                   Sets the current record's "IN_ESPACIO" value
 * @method IN_ASIGNACION_TOMA     setINTERCEROS4()                 Sets the current record's "INTERCEROS_4" value
 * @method IN_ASIGNACION_TOMA     setINTIPOALMACENAMIENTO()        Sets the current record's "IN_TIPO_ALMACENAMIENTO" value
 * @method IN_ASIGNACION_TOMA     setINDETALLEASIGNACIONTEMPO()    Sets the current record's "IN_DETALLE_ASIGNACION_TEMPO" collection
 * @method IN_ASIGNACION_TOMA     setINDETALLEASIGNACION()         Sets the current record's "IN_DETALLE_ASIGNACION" collection
 * 
 * @package    cobro_coactivo
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseIN_ASIGNACION_TOMA extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('IN_ASIGNACION_TOMA');
        $this->hasColumn('id_asignacion_toma', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_toma_inventario', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('descripcion', 'string', 999, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 999,
             ));
        $this->hasColumn('estado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '1',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('anulado', 'integer', 1, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'default' => '0',
             'primary' => false,
             'length' => 1,
             ));
        $this->hasColumn('fecha_anu', 'timestamp', 7, array(
             'notnull' => false,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('motivo_anu', 'string', 999, array(
             'notnull' => false,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 999,
             ));
        $this->hasColumn('id_mae_ter_res', 'integer', 20, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('id_espacio', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('id_tipo_almacenamiento', 'integer', 8, array(
             'notnull' => false,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
    }

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

        $this->hasOne('INTERCEROS', array(
             'local' => 'id_mae_ter_res',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('IN_ESPACIO', array(
             'local' => 'id_espacio',
             'foreign' => 'id_espacio'));

        $this->hasOne('INTERCEROS as INTERCEROS_4', array(
             'local' => 'id_mae_ter',
             'foreign' => 'id_mae_ter'));

        $this->hasOne('IN_TIPO_ALMACENAMIENTO', array(
             'local' => 'id_tipo_almacenamiento',
             'foreign' => 'id_tipo_almacenamiento'));

        $this->hasMany('IN_DETALLE_ASIGNACION_TEMPO', array(
             'local' => 'id_asignacion_toma',
             'foreign' => 'id_asignacion_toma'));

        $this->hasMany('IN_DETALLE_ASIGNACION', array(
             'local' => 'id_asignacion_toma',
             'foreign' => 'id_asignacion_toma'));
    }
}