1
0
mirror of synced 2025-01-18 22:41:43 +03:00
doctrine2/tests/models/forum/ForumEntry.php

31 lines
601 B
PHP
Raw Normal View History

<?php
2009-01-04 16:15:32 +00:00
#namespace Doctrine\Tests\Models\Forum;
2009-01-04 16:15:32 +00:00
#use Doctrine\ORM\Entity;
2009-01-04 16:15:32 +00:00
class ForumEntry implements Doctrine_ORM_Entity
{
public $id;
public $topic;
public static function initMetadata($mapping)
{
$mapping->mapField(array(
'fieldName' => 'id',
'type' => 'integer',
'id' => true,
2008-07-27 19:38:56 +00:00
'idGenerator' => 'auto'
));
$mapping->mapField(array(
'fieldName' => 'topic',
'type' => 'string',
'length' => 50
));
}
}