<?php
/**
* BaseImages
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $id
* @property integer $portfolio_id
* @property string $title
* @property integer $sort
* @property Portfolio $Portfolio
*
* @method integer getId() Returns the current record's "id" value
* @method integer getPortfolioId() Returns the current record's "portfolio_id" value
* @method string getTitle() Returns the current record's "title" value
* @method integer getSort() Returns the current record's "sort" value
* @method Portfolio getPortfolio() Returns the current record's "Portfolio" value
* @method Images setId() Sets the current record's "id" value
* @method Images setPortfolioId() Sets the current record's "portfolio_id" value
* @method Images setTitle() Sets the current record's "title" value
* @method Images setSort() Sets the current record's "sort" value
* @method Images setPortfolio() Sets the current record's "Portfolio" value
*
* @package pwp
* @subpackage model
* @author Victor Rad' <victor.v.rad[at]gmail.com>
* @version SVN: $Id: Builder.php 6820 2009-11-30 17:27:49Z jwage $
*/
abstract class BaseImages extends sfDoctrineRecord
{
public function setTableDefinition()
{
$this->setTableName('images');
$this->hasColumn('id', 'integer', 2, array(
'type' => 'integer',
'unsigned' => 1,
'primary' => true,
'autoincrement' => true,
'length' => '2',
));
$this->hasColumn('portfolio_id', 'integer', 2, array(
'type' => 'integer',
'unsigned' => 1,
'notnull' => true,
'length' => '2',
));
$this->hasColumn('title', 'string', 50, array(
'type' => 'string',
'notnull' => true,
'length' => '50',
));
$this->hasColumn('sort', 'integer', 1, array(
'type' => 'integer',
'unsigned' => 1,
'notnull' => true,
'length' => '1',
));
}
public function setUp()
{
parent::setUp();
$this->hasOne('Portfolio', array(
'local' => 'portfolio_id',
'foreign' => 'id'));
}
}