1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/tests/models/forum/ForumBoard.php

10 lines
331 B
PHP
Raw Normal View History

2008-05-08 18:17:35 +04:00
<?php
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'));
}
}