thd/lib/model/doctrine/base/BaseThdVideo.class.php
author ymh <ymh.work@gmail.com>
Wed, 01 Jun 2016 14:07:43 +0200
changeset 103 d2af8a210f5d
parent 35 94a1dc255022
permissions -rw-r--r--
merge bundle

<?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'));
    }
}