我有两个实体;BusinessContactInformation和ContactInformationTypes。BusinessContactInformation的一个实体总是给定ContactInformationType。
但是,当我尝试加载BusinessContactInformation类型的实体时,我得到了这个错误:
致命错误:require(): Failed opening required '/var/tmp//_CG_platformentitiesContactinformationtypes.php'
两个实体都在'platform'entities命名空间中,它们有以下注释:
/**
* Businesscontactinformation
*
* @Table(name="businessContactInformation")
* @Entity
*/
(...)
/**
* @var Contactinformationtypes
*
* @ManyToOne(targetEntity="Contactinformationtypes")
* @JoinColumns({
* @JoinColumn(name="contactTypeId", referencedColumnName="id")
* })
*/
private $contacttypeid;
和Contactinformationtypes:
/**
* Contactinformationtypes
*
* @Table(name="contactInformationTypes")
* @Entity
*/
有人知道是什么引起的吗?我有这个所有我的关系-一对多,多对一,... .
我最终重新生成了我的实体和代理。它允许我重新开始,我必须指向我的代理作为Setup::createAnnotationMetadataConfiguration中的第三个参数。