<?php

/**
 * BaseCustomer
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int                            $customerId                          Type: integer(4), primary key
 * @property int                            $is_deleted                          Type: integer(1), default "0"
 * @property string                         $name                                Type: string(100)
 * @property string                         $description                         Type: string(255)
 * @property Doctrine_Collection|Project[]  $Project                             
 *  
 * @method int                              getCustomerid()                      Type: integer(4), primary key
 * @method int                              getIsDeleted()                       Type: integer(1), default "0"
 * @method string                           getName()                            Type: string(100)
 * @method string                           getDescription()                     Type: string(255)
 * @method Doctrine_Collection|Project[]    getProject()                         
 *  
 * @method Customer                         setCustomerid(int $val)              Type: integer(4), primary key
 * @method Customer                         setIsDeleted(int $val)               Type: integer(1), default "0"
 * @method Customer                         setName(string $val)                 Type: string(100)
 * @method Customer                         setDescription(string $val)          Type: string(255)
 * @method Customer                         setProject(Doctrine_Collection $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BaseCustomer extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_customer');
        $this->hasColumn('customer_id as customerId', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => 4,
             ));
        $this->hasColumn('is_deleted', 'integer', 1, array(
             'type' => 'integer',
             'default' => '0',
             'length' => 1,
             ));
        $this->hasColumn('name', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('description', 'string', 255, array(
             'type' => 'string',
             'length' => 255,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasMany('Project', array(
             'local' => 'customer_id',
             'foreign' => 'customer_id'));
    }
}