<?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 INTERCEROS $INTERCEROS
 * @property IN_TOMA_INVENTARIO $IN_TOMA_INVENTARIO
 * @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 INTERCEROS          getINTERCEROS()            Returns the current record's "INTERCEROS" value
 * @method IN_TOMA_INVENTARIO  getINTOMAINVENTARIO()      Returns the current record's "IN_TOMA_INVENTARIO" value
 * @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  setINTERCEROS()            Sets the current record's "INTERCEROS" value
 * @method IN_ASIGNACION_TOMA  setINTOMAINVENTARIO()      Sets the current record's "IN_TOMA_INVENTARIO" value
 * @method IN_ASIGNACION_TOMA  setINDETALLEASIGNACION()   Sets the current record's "IN_DETALLE_ASIGNACION" collection
 * 
 * @package    nomina
 * @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(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 8,
             ));
        $this->hasColumn('id_toma_inventario', 'integer', 8, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 8,
             ));
        $this->hasColumn('fecha_fin', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('fecha_inicio', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $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,
             ));
    }

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

        $this->hasOne('IN_TOMA_INVENTARIO', array(
             'local' => 'id_toma_inventario',
             'foreign' => 'id_toma_inventario'));

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