1
0
mirror of synced 2025-01-10 11:07:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/Tweet/Tweet.php

33 lines
459 B
PHP
Raw Normal View History

2014-02-21 13:30:41 +04:00
<?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="tweet")
*/
public $author;
public function setAuthor(User $user)
{
$this->author = $user;
}
}