<?php

/**
 * BaseUnLikeOnComment
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                             $id                                         Type: integer, primary key
 * @property int                             $comment_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 Doctrine_Collection|Employee[]  $employeeUnLike                             
 * @property Comment                         $CommentUnLike                              
 *  
 * @method int                               getId()                                     Type: integer, primary key
 * @method int                               getCommentId()                              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 Doctrine_Collection|Employee[]    getEmployeeUnLike()                         
 * @method Comment                           getCommentUnLike()                          
 *  
 * @method UnLikeOnComment                   setId(int $val)                             Type: integer, primary key
 * @method UnLikeOnComment                   setCommentId(int $val)                      Type: integer
 * @method UnLikeOnComment                   setEmployeeNumber(int $val)                 Type: integer(7)
 * @method UnLikeOnComment                   setLikeTime(string $val)                    Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method UnLikeOnComment                   setEmployeeUnLike(Doctrine_Collection $val) 
 * @method UnLikeOnComment                   setCommentUnLike(Comment $val)              
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseUnLikeOnComment extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_buzz_unlike_on_comment');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => '',
             ));
        $this->hasColumn('comment_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->hasMany('Employee as employeeUnLike', array(
             'local' => 'employee_number',
             'foreign' => 'empNumber'));

        $this->hasOne('Comment as CommentUnLike', array(
             'local' => 'comment_id',
             'foreign' => 'id'));
    }
}