1
0
mirror of synced 2025-01-19 06:51:40 +03:00

33 lines
879 B
PHP
Raw Normal View History

2008-02-11 17:08:22 +00:00
<?php
namespace Doctrine\Tests\Models\Forum;
/**
* @DoctrineEntity(tableName="forum_users")
* @DoctrineInheritanceType("joined")
* @DoctrineDiscriminatorColumn(name="dtype", type="varchar", length=20)
* @DoctrineDiscriminatorMap({
"user" = "Doctrine\Tests\Models\Forum\ForumUser",
"admin" = "Doctrine\Tests\Models\Forum\ForumAdministrator"})
* @DoctrineSubclasses({"Doctrine\Tests\Models\Forum\ForumAdministrator"})
*/
class ForumUser
2008-02-11 17:08:22 +00:00
{
/**
* @DoctrineColumn(type="integer")
* @DoctrineId
* @DoctrineIdGenerator("auto")
*/
public $id;
/**
* @DoctrineColumn(type="varchar", length=50)
*/
public $username;
/**
* @DoctrineOneToOne(
targetEntity="Doctrine\Tests\Models\Forum\ForumAvatar",
joinColumns={"avatar_id" = "id"},
cascade={"save"})
*/
public $avatar;
2008-02-11 17:08:22 +00:00
}