<?php

/**
 * BasePhoto
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property int     $id                         Type: integer, primary key
 * @property int     $post_id                    Type: integer
 * @property object  $photo                      Type: blob(2147483647)
 * @property string  $filename                   Type: string(100)
 * @property string  $file_type                  Type: string(50)
 * @property string  $size                       Type: string(20)
 * @property string  $width                      Type: string(20)
 * @property string  $height                     Type: string(20)
 * @property Post    $PhotoAttached              
 *  
 * @method int       getId()                     Type: integer, primary key
 * @method int       getPostId()                 Type: integer
 * @method object    getPhoto()                  Type: blob(2147483647)
 * @method string    getFilename()               Type: string(100)
 * @method string    getFileType()               Type: string(50)
 * @method string    getSize()                   Type: string(20)
 * @method string    getWidth()                  Type: string(20)
 * @method string    getHeight()                 Type: string(20)
 * @method Post      getPhotoAttached()          
 *  
 * @method Photo     setId(int $val)             Type: integer, primary key
 * @method Photo     setPostId(int $val)         Type: integer
 * @method Photo     setPhoto(object $val)       Type: blob(2147483647)
 * @method Photo     setFilename(string $val)    Type: string(100)
 * @method Photo     setFileType(string $val)    Type: string(50)
 * @method Photo     setSize(string $val)        Type: string(20)
 * @method Photo     setWidth(string $val)       Type: string(20)
 * @method Photo     setHeight(string $val)      Type: string(20)
 * @method Photo     setPhotoAttached(Post $val) 
 *  
 * @package    orangehrm
 * @subpackage model
 * @author     Your name here
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class BasePhoto extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('ohrm_buzz_photo');
        $this->hasColumn('id', 'integer', null, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => '',
             ));
        $this->hasColumn('post_id', 'integer', null, array(
             'type' => 'integer',
             'notnull' => true,
             'length' => '',
             ));
        $this->hasColumn('photo', 'blob', 2147483647, array(
             'type' => 'blob',
             'length' => 2147483647,
             ));
        $this->hasColumn('filename', 'string', 100, array(
             'type' => 'string',
             'length' => 100,
             ));
        $this->hasColumn('file_type', 'string', 50, array(
             'type' => 'string',
             'length' => 50,
             ));
        $this->hasColumn('size', 'string', 20, array(
             'type' => 'string',
             'length' => 20,
             ));
        $this->hasColumn('width', 'string', 20, array(
             'type' => 'string',
             'length' => 20,
             ));
        $this->hasColumn('height', 'string', 20, array(
             'type' => 'string',
             'length' => 20,
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('Post as PhotoAttached', array(
             'local' => 'post_id',
             'foreign' => 'id'));
    }
}