1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests/models/forum/ForumAvatar.php
2008-12-18 14:08:11 +00:00

28 lines
529 B
PHP

<?php
#namespace Doctrine\Tests\ORM\Models\Forum;
#use Doctrine\ORM\Entity;
#use Doctrine\Common\VirtualPropertySystem;
class ForumAvatar
{
public $id;
/*static function construct() {
Doctrine_Common_VirtualPropertySystem::register(__CLASS__, 'id', 'int');
}*/
public static function initMetadata($mapping)
{
$mapping->mapField(array(
'fieldName' => 'id',
'type' => 'integer',
'id' => true,
'idGenerator' => 'auto'
));
}
}
?>