1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/models/forum/ForumBoard.php
2008-05-08 14:17:35 +00:00

10 lines
331 B
PHP

<?php
class ForumBoard extends Doctrine_Record {
public static function initMetadata($class) {
$class->mapColumn('position', 'integer');
$class->mapColumn('category_id', 'integer');
$class->hasOne('ForumCategory as category',
array('local' => 'category_id', 'foreign' => 'id'));
}
}