1
0
mirror of synced 2025-01-31 20:41:44 +03:00
doctrine2/tests/models/forum/ForumBoard.php

10 lines
331 B
PHP

<?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'));
}
}