1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests/models/forum/ForumUser.php

33 lines
751 B
PHP

<?php
#namespace Doctrine\Tests\Models\Forum;
#use Doctrine\ORM\Entity;
/**
* @DoctrineEntity
* @DoctrineInheritanceType("joined")
* @DoctrineDiscriminatorColumn(name="dtype", type="string", length=20)
* @DoctrineDiscriminatorMap({"user" = "ForumUser", "admin" = "ForumAdministrator"})
* @DoctrineSubclasses({"ForumAdministrator"})
*/
class ForumUser
{
/**
* @DoctrineColumn(type="integer")
* @DoctrineId
* @DoctrineIdGenerator("auto")
*/
public $id;
/**
* @DoctrineColumn(type="string", length=50)
*/
public $username;
/**
* @DoctrineOneToOne(
targetEntity="ForumAvatar",
joinColumns={"avatar_id" = "id"},
cascade={"save"})
*/
public $avatar;
}