2015-01-22 17:32:03 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\DDC3346;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
* @Table(name="ddc3346_users")
|
|
|
|
*/
|
|
|
|
class DDC3346Author
|
|
|
|
{
|
2015-01-23 16:22:17 +01:00
|
|
|
const CLASSNAME = __CLASS__;
|
|
|
|
|
2015-01-22 17:32:03 +03:00
|
|
|
/**
|
|
|
|
* @Id @Column(type="integer")
|
|
|
|
* @GeneratedValue
|
|
|
|
*/
|
|
|
|
public $id;
|
2015-01-23 16:22:17 +01:00
|
|
|
|
2015-01-22 17:32:03 +03:00
|
|
|
/**
|
|
|
|
* @Column(type="string", length=255, unique=true)
|
|
|
|
*/
|
|
|
|
public $username;
|
2015-01-23 16:22:17 +01:00
|
|
|
|
2015-01-22 17:32:03 +03:00
|
|
|
/**
|
|
|
|
* @OneToMany(targetEntity="DDC3346Article", mappedBy="user", fetch="EAGER", cascade={"detach"})
|
|
|
|
*/
|
2015-01-23 16:22:17 +01:00
|
|
|
public $articles = array();
|
2015-01-22 17:32:03 +03:00
|
|
|
}
|