Actions

Source Code of This Project

/lib/model/doctrine/base/BasePortfolio.class.php

<?php

/**
 * BasePortfolio
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property string $url
 * @property string $title
 * @property string $content
 * @property integer $sort
 * @property Doctrine_Collection $Images
 * 
 * @method integer             getId()      Returns the current record's "id" value
 * @method string              getUrl()     Returns the current record's "url" value
 * @method string              getTitle()   Returns the current record's "title" value
 * @method string              getContent() Returns the current record's "content" value
 * @method integer             getSort()    Returns the current record's "sort" value
 * @method Doctrine_Collection getImages()  Returns the current record's "Images" collection
 * @method Portfolio           setId()      Sets the current record's "id" value
 * @method Portfolio           setUrl()     Sets the current record's "url" value
 * @method Portfolio           setTitle()   Sets the current record's "title" value
 * @method Portfolio           setContent() Sets the current record's "content" value
 * @method Portfolio           setSort()    Sets the current record's "sort" value
 * @method Portfolio           setImages()  Sets the current record's "Images" collection
 * 
 * @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 BasePortfolio extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('portfolio');
        $this->hasColumn('id', 'integer', 2, array(
             'type' => 'integer',
             'unsigned' => 1,
             'primary' => true,
             'autoincrement' => true,
             'length' => '2',
             ));
        $this->hasColumn('url', 'string', 250, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '250',
             ));
        $this->hasColumn('title', 'string', 50, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '50',
             ));
        $this->hasColumn('content', 'string', null, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '',
             ));
        $this->hasColumn('sort', 'integer', 1, array(
             'type' => 'integer',
             'notnull' => true,
             'length' => '1',
             ));
    }

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