Actions

Source Code of This Project

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

<?php

/**
 * BaseNews
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @property integer $id
 * @property integer $news_providers_id
 * @property string $description
 * @property string $hash
 * @property timestamp $created_at
 * @property string $title
 * @property string $link
 * @property timestamp $updated_at
 * @property NewsProviders $NewsProviders
 * 
 * @method integer       getId()                Returns the current record's "id" value
 * @method integer       getNewsProvidersId()   Returns the current record's "news_providers_id" value
 * @method string        getDescription()       Returns the current record's "description" value
 * @method string        getHash()              Returns the current record's "hash" value
 * @method timestamp     getCreatedAt()         Returns the current record's "created_at" value
 * @method string        getTitle()             Returns the current record's "title" value
 * @method string        getLink()              Returns the current record's "link" value
 * @method timestamp     getUpdatedAt()         Returns the current record's "updated_at" value
 * @method NewsProviders getNewsProviders()     Returns the current record's "NewsProviders" value
 * @method News          setId()                Sets the current record's "id" value
 * @method News          setNewsProvidersId()   Sets the current record's "news_providers_id" value
 * @method News          setDescription()       Sets the current record's "description" value
 * @method News          setHash()              Sets the current record's "hash" value
 * @method News          setCreatedAt()         Sets the current record's "created_at" value
 * @method News          setTitle()             Sets the current record's "title" value
 * @method News          setLink()              Sets the current record's "link" value
 * @method News          setUpdatedAt()         Sets the current record's "updated_at" value
 * @method News          setNewsProviders()     Sets the current record's "NewsProviders" 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 BaseNews extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('news');
        $this->hasColumn('id', 'integer', 4, array(
             'type' => 'integer',
             'unsigned' => 1,
             'primary' => true,
             'autoincrement' => true,
             'length' => '4',
             ));
        $this->hasColumn('news_providers_id', 'integer', 4, array(
             'type' => 'integer',
             'unsigned' => 1,
             'notnull' => true,
             'length' => '4',
             ));
        $this->hasColumn('description', 'string', null, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '',
             ));
        $this->hasColumn('hash', 'string', 32, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '32',
             ));
        $this->hasColumn('created_at', 'timestamp', 25, array(
             'type' => 'timestamp',
             'notnull' => true,
             'length' => '25',
             ));
        $this->hasColumn('title', 'string', 200, array(
             'type' => 'string',
             'length' => '200',
             ));
        $this->hasColumn('link', 'string', null, array(
             'type' => 'string',
             'length' => '',
             ));
        $this->hasColumn('updated_at', 'timestamp', 25, array(
             'type' => 'timestamp',
             'length' => '25',
             ));
    }

    public function setUp()
    {
        parent::setUp();
        $this->hasOne('NewsProviders', array(
             'local' => 'news_providers_id',
             'foreign' => 'id'));
    }
}