【发布时间】:2018-08-22 02:01:56
【问题描述】:
试图在两个实体之间建立关系。
用 phpmyadmin 调查显示他们的表之间没有链接。
/*
* @ORM\OneToOne(targetEntity="Otherentity")
*/
private $otherentity;
代替:
/**
* @ORM\OneToOne(targetEntity="Otherentity")
*/
private $otherentity;
即使检查coding standards 也没有帮助我。
【问题讨论】:
标签: doctrine-orm entity-relationship symfony-2.8