1
0
Fork 0
mirror of synced 2025-03-29 03:09:50 +03:00
doctrine2/manual/codes/Object relational mapping - Relations - Inheritance - One table many classes.php

14 lines
410 B
PHP

<?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 { }
?>