Details
Description
<?php
namespace vo;
/**
* @Entity
*/
class Appointment {
/** @Id @Column(type="integer") @GeneratedValue(strategy="IDENTITY") */
public $id;
/**
* @OneToOne(targetEntity="Patient", inversedBy="appointment", fetch="EAGER")
* @JoinColumn(name="patient_id", referencedColumnName="id")
*/
public $patient;
}
When doing a findAll() on appointments, $patient is being created as a proxy even though fetch is EAGER.