1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/manual/docs/Working with objects - Component overview - Table - Custom table classes.php

17 lines
315 B
PHP
Raw Normal View History

2007-04-14 01:49:11 +04:00
Adding custom table classes is very easy. Only thing you need to do is name the classes as [componentName]Table and make them
inherit Doctrine_Table.
<code type="php">
// valid table object
class UserTable extends Doctrine_Table {
}
// not valid [doesn't extend Doctrine_Table]
class GroupTable { }
</code>