<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseThdVideo extends sfDoctrineRecord
{
public function setTableDefinition()
{
$this->setTableName('thd_video');
$this->hasColumn('id', 'integer', 4, array(
'type' => 'integer',
'primary' => true,
'autoincrement' => true,
'length' => '4',
));
$this->hasColumn('ref', 'integer', 4, array(
'type' => 'integer',
'notnull' => true,
'length' => '4',
));
$this->hasColumn('film_ref', 'integer', 4, array(
'type' => 'integer',
'notnull' => true,
'length' => '4',
));
$this->hasColumn('file', 'string', 255, array(
'type' => 'string',
'notnull' => true,
'length' => '255',
));
$this->hasColumn('title', 'string', 255, array(
'type' => 'string',
'length' => '255',
));
}
public function setUp()
{
$this->hasOne('ThdFilm', array(
'local' => 'film_ref',
'foreign' => 'ref'));
$this->hasMany('ThdSegment as segments', array(
'local' => 'ref',
'foreign' => 'video_ref'));
}
}