2008-05-08 18:17:35 +04:00
|
|
|
<?php
|
2008-05-14 01:20:34 +04:00
|
|
|
class ForumBoard extends Doctrine_Entity {
|
2008-05-08 18:17:35 +04:00
|
|
|
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'));
|
|
|
|
}
|
|
|
|
}
|