1
0
mirror of synced 2025-01-19 15:01:40 +03:00
2015-01-24 14:39:43 +01:00

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;
}
}