1
0
mirror of synced 2025-01-09 18:47:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/Tweet/Tweet.php
2014-05-15 18:22:57 +02:00

33 lines
460 B
PHP

<?php
namespace Doctrine\Tests\Models\Tweet;
/**
* @Entity
* @Table(name="tweet_tweet")
*/
class Tweet
{
/**
* @Id
* @GeneratedValue
* @Column(type="integer")
*/
public $id;
/**
* @Column(type="string")
*/
public $content;
/**
* @ManyToOne(targetEntity="User", inversedBy="tweets")
*/
public $author;
public function setAuthor(User $user)
{
$this->author = $user;
}
}