<?php
/**
* BaseNewsProviders
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property integer $id
* @property enum $status
* @property string $name
* @property string $title
* @property string $description
* @property string $link
* @property string $news_link
* @property Doctrine_Collection $News
*
* @method integer getId() Returns the current record's "id" value
* @method enum getStatus() Returns the current record's "status" value
* @method string getName() Returns the current record's "name" value
* @method string getTitle() Returns the current record's "title" value
* @method string getDescription() Returns the current record's "description" value
* @method string getLink() Returns the current record's "link" value
* @method string getNewsLink() Returns the current record's "news_link" value
* @method Doctrine_Collection getNews() Returns the current record's "News" collection
* @method NewsProviders setId() Sets the current record's "id" value
* @method NewsProviders setStatus() Sets the current record's "status" value
* @method NewsProviders setName() Sets the current record's "name" value
* @method NewsProviders setTitle() Sets the current record's "title" value
* @method NewsProviders setDescription() Sets the current record's "description" value
* @method NewsProviders setLink() Sets the current record's "link" value
* @method NewsProviders setNewsLink() Sets the current record's "news_link" value
* @method NewsProviders setNews() Sets the current record's "News" 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 BaseNewsProviders extends sfDoctrineRecord
{
public function setTableDefinition()
{
$this->setTableName('news_providers');
$this->hasColumn('id', 'integer', 4, array(
'type' => 'integer',
'unsigned' => 1,
'primary' => true,
'autoincrement' => true,
'length' => '4',
));
$this->hasColumn('status', 'enum', 8, array(
'type' => 'enum',
'values' =>
array(
0 => 'active',
1 => 'inactive',
),
'default' => 'active',
'notnull' => true,
'length' => '8',
));
$this->hasColumn('name', 'string', 50, array(
'type' => 'string',
'length' => '50',
));
$this->hasColumn('title', 'string', 200, array(
'type' => 'string',
'length' => '200',
));
$this->hasColumn('description', 'string', 1000, array(
'type' => 'string',
'length' => '1000',
));
$this->hasColumn('link', 'string', 100, array(
'type' => 'string',
'length' => '100',
));
$this->hasColumn('news_link', 'string', 200, array(
'type' => 'string',
'length' => '200',
));
}
public function setUp()
{
parent::setUp();
$this->hasMany('News', array(
'local' => 'id',
'foreign' => 'news_providers_id'));
}
}