1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/CMS/CmsComment.php
Roman S. Borschel 7cc56c45d3 [DDC-193] Fixed.
2010-04-10 00:00:36 +02:00

31 lines
541 B
PHP

<?php
namespace Doctrine\Tests\Models\CMS;
/**
* @Entity
* @Table(name="cms_comments")
*/
class CmsComment
{
/**
* @Column(type="integer")
* @Id
* @GeneratedValue(strategy="AUTO")
*/
public $id;
/**
* @Column(type="string", length=255)
*/
public $topic;
/**
* @Column(type="string")
*/
public $text;
/**
* @ManyToOne(targetEntity="CmsArticle", inversedBy="comments")
* @JoinColumn(name="article_id", referencedColumnName="id")
*/
public $article;
}