1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/tests/Doctrine/Tests/Models/CMS/CmsComment.php

31 lines
541 B
PHP
Raw Normal View History

2008-05-08 18:17:35 +04:00
<?php
namespace Doctrine\Tests\Models\CMS;
/**
* @Entity
* @Table(name="cms_comments")
*/
class CmsComment
2008-05-08 18:17:35 +04:00
{
/**
* @Column(type="integer")
* @Id
* @GeneratedValue(strategy="AUTO")
*/
public $id;
/**
* @Column(type="string", length=255)
*/
public $topic;
/**
* @Column(type="string")
*/
public $text;
/**
2010-04-10 02:00:36 +04:00
* @ManyToOne(targetEntity="CmsArticle", inversedBy="comments")
* @JoinColumn(name="article_id", referencedColumnName="id")
*/
public $article;
2008-05-08 18:17:35 +04:00
}