1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/manual/codes/Getting started - Starting new project.php
2006-07-23 21:08:06 +00:00

14 lines
407 B
PHP

<?php
class User extends Doctrine_Record {
public function setTableDefinition() {
// set 'user' table columns, note that
// id column is always auto-created
$this->hasColumn("name","string",30);
$this->hasColumn("username","string",20);
$this->hasColumn("password","string",16);
$this->hasColumn("created","integer",11);
}
}
?>