29 lines
576 B
PHP
29 lines
576 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\DDC3346;
|
|
|
|
/**
|
|
* @Entity
|
|
* @Table(name="ddc3346_articles")
|
|
*/
|
|
class DDC3346Article
|
|
{
|
|
const CLASSNAME = 'Doctrine\Tests\Models\DDC3346\DDC3346Article';
|
|
/**
|
|
* @Id
|
|
* @Column(type="integer")
|
|
* @GeneratedValue(strategy="AUTO")
|
|
*/
|
|
public $id;
|
|
/**
|
|
* @ManyToOne(targetEntity="DDC3346Author", inversedBy="articles")
|
|
* @JoinColumn(name="user_id", referencedColumnName="id")
|
|
*/
|
|
public $user;
|
|
|
|
public function setAuthor(DDC3346Author $author)
|
|
{
|
|
$this->user = $author;
|
|
}
|
|
}
|