1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/tests/models/cms/CmsArticle.php

33 lines
606 B
PHP
Raw Normal View History

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