2008-05-07 01:03:31 +04:00
|
|
|
<?php
|
2008-07-21 00:13:24 +04:00
|
|
|
|
2009-01-05 20:25:56 +03:00
|
|
|
#namespace Doctrine\Tests\Models\CMS;
|
2008-07-21 00:13:24 +04:00
|
|
|
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
|
|
|
* @DoctrineEntity
|
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
class CmsArticle
|
2008-05-07 01:03:31 +04:00
|
|
|
{
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
|
|
|
* @DoctrineId
|
|
|
|
* @DoctrineColumn(type="integer")
|
|
|
|
* @DoctrineIdGenerator("auto")
|
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $id;
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2009-01-07 20:46:02 +03:00
|
|
|
* @DoctrineColumn(type="varchar", length=255)
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $topic;
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
2009-01-07 20:46:02 +03:00
|
|
|
* @DoctrineColumn(type="varchar")
|
2009-01-05 20:25:56 +03:00
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $text;
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
|
|
|
* @DoctrineManyToOne(targetEntity="CmsUser", joinColumns={"user_id" = "id"})
|
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $user;
|
2009-01-05 20:25:56 +03:00
|
|
|
/**
|
|
|
|
* @DoctrineOneToMany(targetEntity="CmsComment", mappedBy="article")
|
|
|
|
*/
|
2008-12-18 17:08:11 +03:00
|
|
|
public $comments;
|
2008-05-07 01:03:31 +04:00
|
|
|
}
|