28 lines
477 B
PHP
28 lines
477 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\DDC3346;
|
|
|
|
/**
|
|
* @Entity
|
|
* @Table(name="ddc3346_articles")
|
|
*/
|
|
class DDC3346Article
|
|
{
|
|
const CLASSNAME = __CLASS__;
|
|
|
|
/**
|
|
* @Id
|
|
* @Column(type="integer")
|
|
* @GeneratedValue(strategy="AUTO")
|
|
*/
|
|
public $id;
|
|
|
|
/**
|
|
* @var DDC3346Author
|
|
*
|
|
* @ManyToOne(targetEntity="DDC3346Author", inversedBy="articles")
|
|
* @JoinColumn(name="user_id", referencedColumnName="id")
|
|
*/
|
|
public $user;
|
|
}
|