1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/models/forum/ForumEntry.php

32 lines
645 B
PHP
Raw Normal View History

<?php
#namespace Doctrine::Test::ORM::Models;
#use Doctrine::ORM::Entity;
2008-09-12 14:40:23 +04:00
class ForumEntry extends Doctrine_ORM_Entity
{
#protected $id;
#protected $topic;
public static function initMetadata($mapping)
{
$mapping->mapField(array(
'fieldName' => 'id',
'type' => 'integer',
'length' => 4,
'id' => true,
2008-07-27 23:38:56 +04:00
'idGenerator' => 'auto'
));
$mapping->mapField(array(
'fieldName' => 'topic',
'type' => 'string',
'length' => 50
));
}
}
?>