<?php

/**
 * BaseLikeOnComment
 * 
 * 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[]  $employeeLike                             
 * @property Comment                         $CommentLike                              
 *  
 * @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[]    getEmployeeLike()                         
 * @method Comment                           getCommentLike()                          
 *  
 * @method LikeOnComment                     setId(int $val)                           Type: integer, primary key
 * @method LikeOnComment                     setCommentId(int $val)                    Type: integer
 * @method LikeOnComment                     setEmployeeNumber(int $val)               Type: integer(7)
 * @method LikeOnComment                     setLikeTime(string $val)                  Type: timestamp, Timestamp in ISO-8601 format (YYYY-MM-DD HH:MI:SS)
 * @method LikeOnComment                     setEmployeeLike(Doctrine_Collection $val) 
 * @method LikeOnComment                     setCommentLike(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 BaseLikeOnComment extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_buzz_like_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 employeeLike', array(
             'local' => 'employee_number',
             'foreign' => 'empNumber'));

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