1

2 つのエンティティがあります。BusinessContactInformation および ContactInformationTypes。BusinessContactInformation の 1 つのエンティティは、常に特定の ContactInformationType です。

ただし、タイプ BusinessContactInformation のエンティティを読み込もうとすると、次のエラーが発生します。

致命的なエラー: require(): 必要な '/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
  *
  * @Table(name="contactInformationTypes")
  * @Entity
  */

誰がこれを引き起こしているのかの手がかりを持っていますか? 私はすべての関係でこれを抱えています-1対多、多対1、... .

4

1 に答える 1

0

エンティティとプロキシを再生成することになりました。これにより、適切な新たなスタートを切ることができ、Setup::createAnnotationMetadataConfiguration の 3 番目のパラメーターとしてプロキシを指定する必要がありました。

于 2013-04-12T00:44:52.970 に答える