thd/lib/model/doctrine/base/BaseThdVideo.class.php
author Alexandre BASTIEN <alexandre.bastien@iri.centrepompidou.fr>
Mon, 20 Feb 2012 16:22:45 +0100
changeset 59 1c5c5346d2a3
parent 35 94a1dc255022
permissions -rw-r--r--
01.txt v1

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