getPassport() { }
public class Passport implements Serializable {
@OneToOne(mappedBymappedBy in Passport表示它与Customer有一对一的关系,但它不负责Customer的级联更新。passport in mappedBy of Passport怎么样?它们是否是表示各自外键的表列?
.
* @var CashRegister[] * @ORM\OneToMany(targetEntity="CashRegister", mappedBy="binLocation") <= Here is the problem, in this case mappedBy need to be an array [binLocation, returnBinLocation