order 表中 /** * @ORM\OneToOne(targetEntity="SnatchTreasure") */ private $snatchTreasure; 在snatchTreasure表中有 /** * @ORM\OneToOne(targetEntity="OrderRecord", mappedBy="snatchTreasure")//注意这两处书写要一致才能从父表读到子表数据 */ private $orderRecord;