#6284 eager fetching is strictly required to verify the issue
This commit is contained in:
parent
805ba041ef
commit
4e0b76ce69
@ -54,7 +54,13 @@ final class GH6217Test extends OrmFunctionalTestCase
|
|||||||
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
|
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
|
||||||
class GH6217User
|
class GH6217User
|
||||||
{
|
{
|
||||||
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
|
/**
|
||||||
|
* @Id
|
||||||
|
* @Column(type="string")
|
||||||
|
* @GeneratedValue(strategy="NONE")
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -66,7 +72,13 @@ class GH6217User
|
|||||||
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
|
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
|
||||||
class GH6217Profile
|
class GH6217Profile
|
||||||
{
|
{
|
||||||
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
|
/**
|
||||||
|
* @Id
|
||||||
|
* @Column(type="string")
|
||||||
|
* @GeneratedValue(strategy="NONE")
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -78,7 +90,13 @@ class GH6217Profile
|
|||||||
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
|
/** @Entity @Cache(usage="NONSTRICT_READ_WRITE") */
|
||||||
class GH6217Category
|
class GH6217Category
|
||||||
{
|
{
|
||||||
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
|
/**
|
||||||
|
* @Id
|
||||||
|
* @Column(type="string")
|
||||||
|
* @GeneratedValue(strategy="NONE")
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -93,10 +111,10 @@ class GH6217UserProfile
|
|||||||
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217User::class) */
|
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217User::class) */
|
||||||
public $user;
|
public $user;
|
||||||
|
|
||||||
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217Profile::class) */
|
/** @Id @Cache("NONSTRICT_READ_WRITE") @ManyToOne(targetEntity=GH6217Profile::class, fetch="EAGER") */
|
||||||
public $profile;
|
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 $category;
|
||||||
|
|
||||||
public function __construct(GH6217User $user, GH6217Profile $profile, GH6217Category $category)
|
public function __construct(GH6217User $user, GH6217Profile $profile, GH6217Category $category)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user