==> doctrine/schema/schema.yml <==
---
Article:
actAs:
Timestampable:
columns:
id:
primary: true
autoincrement: true
type: integer(4)
title:
type: string(100)
==> doctrine/models/Article.php <==
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Article extends BaseArticle
{
}
==> doctrine/models/ArticleTable.php <==
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class ArticleTable extends Doctrine_Table
{
}
==> doctrine/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('id', 'integer', 4, array('primary' => true, 'autoincrement' => true));
$this->hasColumn('title', 'string', 100);
}
public function setUp()
{
parent::setUp();
$this->actAs('Timestampable');
}
}
==> doctrine/data/sql/schema.sql <==
CREATE TABLE article (id INT AUTO_INCREMENT, title VARCHAR(100), created_at DATETIME, updated_at DATETIME, PRIMARY KEY(id)) ENGINE = INNODB;