All pastes #955131 Raw Edit

Anonymous

public text v1 · immutable
#955131 ·published 2008-03-24 11:41 UTC
rendered paste body
### schema.yml ###
---
Article:
    columns:
        actAs:
            Sluggable
        id:
            primary: true
            autoincrement: true
            type: integer(4)
        title:
            type: string(100)

### models/Article.php ###
<?php

/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class Article extends BaseArticle
{



}

### models/ArticleTable.php ###
<?php
/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
class ArticleTable extends Doctrine_Table
{



}

### models/generated/BaseArticle.php ###
<?php

/**
 * This class has been auto-generated by the Doctrine ORM Framework
 */
abstract class BaseArticle extends Doctrine_Record
{

  public function setTableDefinition()
  {
    $this->setTableName('article');
    $this->hasColumn('actAs', '', null);
    $this->hasColumn('id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
    $this->hasColumn('title', 'string', 100);
  }

  public function setUp()
  {
    parent::setUp();
  }

}