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

/**
 * BaseCI_DOCUMENTO_SOP_USU
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * 
 * @package    nomina
 * @subpackage model
 * @author     Manuel Enrique Paredes Lopez
 * @version    SVN: $Id: Builder.php 7691 2011-02-04 15:43:29Z jwage $
 */
abstract class BaseCI_DOCUMENTO_SOP_USU extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('CI_DOCUMENTO_SOP_USU');
        $this->hasColumn('id', 'integer', 20, array(
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => true,
             'length' => 20,
             ));
        $this->hasColumn('id_mae_ter', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('adjunto', 'string', 1000, array(
             'notnull' => true,
             'type' => 'string',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 1000,
             ));
        $this->hasColumn('id_tipo_doc', 'integer', 20, array(
             'notnull' => true,
             'type' => 'integer',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 20,
             ));
        $this->hasColumn('fecha_sys', 'timestamp', 7, array(
             'notnull' => true,
             'type' => 'timestamp',
             'fixed' => 0,
             'unsigned' => false,
             'primary' => false,
             'length' => 7,
             ));
    }

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