1
0
mirror of synced 2025-01-19 15:01:40 +03:00
doctrine2/tests/models/forum/ForumBoard.php
2008-05-24 18:18:37 +00:00

10 lines
331 B
PHP
Executable File

<?php
class ForumBoard extends Doctrine_Entity {
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'));
}
}