1
0
mirror of synced 2025-01-19 23:11:41 +03:00

35 lines
494 B
PHP
Raw Normal View History

2014-02-21 10:30:41 +01:00
<?php
namespace Doctrine\Tests\Models\Tweet;
/**
* @Entity
* @Table(name="tweet_tweet")
*/
class Tweet
{
const CLASSNAME = __CLASS__;
2014-02-21 10:30:41 +01:00
/**
* @Id
* @GeneratedValue
* @Column(type="integer")
*/
public $id;
/**
* @Column(type="string")
*/
public $content;
/**
2014-02-21 10:46:14 +01:00
* @ManyToOne(targetEntity="User", inversedBy="tweets")
2014-02-21 10:30:41 +01:00
*/
public $author;
public function setAuthor(User $user)
{
$this->author = $user;
}
}