<?php

/**
 * BaseUnLikeOnShare
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int            $id                              Type: integer, primary key
 * @property int            $share_id                        Type: integer
 * @property int            $employee_number                 Type: integer(7)
 * @property string         $like_time                       Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @property Employee       $employeeUnLike                  
 * @property Share          $ShareUnLike                     
 *  
 * @method int              getId()                          Type: integer, primary key
 * @method int              getShareId()                     Type: integer
 * @method int              getEmployeeNumber()              Type: integer(7)
 * @method string           getLikeTime()                    Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method Employee         getEmployeeUnLike()              
 * @method Share            getShareUnLike()                 
 *  
 * @method UnLikeOnShare    setId(int $val)                  Type: integer, primary key
 * @method UnLikeOnShare    setShareId(int $val)             Type: integer
 * @method UnLikeOnShare    setEmployeeNumber(int $val)      Type: integer(7)
 * @method UnLikeOnShare    setLikeTime(string $val)         Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method UnLikeOnShare    setEmployeeUnLike(Employee $val) 
 * @method UnLikeOnShare    setShareUnLike(Share $val)       
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseUnLikeOnShare extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_buzz_unlike_on_share');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => '',
             ));
        $this->hasColumn('share_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             'length' => '',
             ));
        $this->hasColumn('employee_number', 'integer', 7, array(
             'type' => 'integer',
             'length' => 7,
             ));
        $this->hasColumn('like_time', 'timestamp', null, array(
             'type' => 'timestamp',
             'notnull' => true,
             ));
    }

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

        $this->hasOne('Share as ShareUnLike', array(
             'local' => 'share_id',
             'foreign' => 'id'));
    }
}