1
0
mirror of synced 2025-02-02 21:41:45 +03:00

#6284 eager fetching is strictly required to verify the issue

This commit is contained in:
Marco Pivetta 2017-08-22 21:14:38 +02:00
parent 805ba041ef
commit 4e0b76ce69
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -54,7 +54,13 @@ final class GH6217Test extends OrmFunctionalTestCase
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
class GH6217User
{
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
/**
* @Id
* @Column(type="string")
* @GeneratedValue(strategy="NONE")
*
* @var string
*/
public $id;
public function __construct()
@ -66,7 +72,13 @@ class GH6217User
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
class GH6217Profile
{
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
/**
* @Id
* @Column(type="string")
* @GeneratedValue(strategy="NONE")
*
* @var string
*/
public $id;
public function __construct()
@ -78,7 +90,13 @@ class GH6217Profile
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
class GH6217Category
{
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
/**
* @Id
* @Column(type="string")
* @GeneratedValue(strategy="NONE")
*
* @var string
*/
public $id;
public function __construct()
@ -93,10 +111,10 @@ class GH6217UserProfile
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217User::class) */
public $user;
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217Profile::class) */
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217Profile::class, fetch="EAGER") */
public $profile;
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217Category::class) */
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217Category::class, fetch="EAGER") */
public $category;
public function __construct(GH6217User $user, GH6217Profile $profile, GH6217Category $category)