1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/manual/codes/Mapping object relations - Inheritance - One table many classes.php

15 lines
410 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
class Entity extends Doctrine_Record {
public function setTableDefinition() {
$this->hasColumn("name","string",30);
$this->hasColumn("username","string",20);
$this->hasColumn("password","string",16);
$this->hasColumn("created","integer",11);
}
}
class User extends Entity { }
class Group extends Entity { }
?>