<?php

/**
 * BaseBuzzLastView
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int           $employee_number                   Type: integer(7), primary key
 * @property string        $last_view_time                    Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @property string        $type                              Type: string(10)
 * @property Employee      $employeeLastView                  
 *  
 * @method int             getEmployeeNumber()                Type: integer(7), primary key
 * @method string          getLastViewTime()                  Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method string          getType()                          Type: string(10)
 * @method Employee        getEmployeeLastView()              
 *  
 * @method BuzzLastView    setEmployeeNumber(int $val)        Type: integer(7), primary key
 * @method BuzzLastView    setLastViewTime(string $val)       Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method BuzzLastView    setType(string $val)               Type: string(10)
 * @method BuzzLastView    setEmployeeLastView(Employee $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseBuzzLastView extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_buzz_employee_last_view');
        $this->hasColumn('employee_number', 'integer', 7, array(
             'type' => 'integer',
             'primary' => true,
             'length' => 7,
             ));
        $this->hasColumn('last_view_time', 'timestamp', null, array(
             'type' => 'timestamp',
             'notnull' => true,
             ));
        $this->hasColumn('type', 'string', 10, array(
             'type' => 'string',
             'length' => 10,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('Employee as employeeLastView', array(
             'local' => 'employee_number',
             'foreign' => 'empNumber'));
    }
}