thd/lib/model/doctrine/base/BaseThdImage.class.php
author Gautier Thibault <gthibault@universcine.com>
Tue, 22 Sep 2009 16:40:38 +0200
changeset 35 94a1dc255022
permissions -rw-r--r--
Commit the all thd project created with the framework symfony

<?php

/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
abstract class BaseThdImage extends sfDoctrineRecord
{
    public function setTableDefinition()
    {
        $this->setTableName('thd_image');
        $this->hasColumn('id', 'integer', 4, array(
             'type' => 'integer',
             'primary' => true,
             'autoincrement' => true,
             'length' => '4',
             ));
        $this->hasColumn('film_ref', 'integer', 4, array(
             'type' => 'integer',
             'notnull' => true,
             'length' => '4',
             ));
        $this->hasColumn('type', 'integer', 1, array(
             'type' => 'integer',
             'notnull' => true,
             'length' => '1',
             ));
        $this->hasColumn('file', 'string', 255, array(
             'type' => 'string',
             'notnull' => true,
             'length' => '255',
             ));
    }

    public function setUp()
    {
        $this->hasOne('ThdFilm', array(
             'local' => 'film_ref',
             'foreign' => 'ref'));
    }
}