1
0
mirror of synced 2025-03-28 10:53:49 +03:00
2009-01-04 16:15:32 +00:00

31 lines
601 B
PHP

<?php
#namespace Doctrine\Tests\Models\Forum;
#use Doctrine\ORM\Entity;
class ForumEntry implements Doctrine_ORM_Entity
{
public $id;
public $topic;
public static function initMetadata($mapping)
{
$mapping->mapField(array(
'fieldName' => 'id',
'type' => 'integer',
'id' => true,
'idGenerator' => 'auto'
));
$mapping->mapField(array(
'fieldName' => 'topic',
'type' => 'string',
'length' => 50
));
}
}