我会问为什么我会收到错误
[FAIL] The entity-class AppBundleEntityRule mapping is invalid:
* The association AppBundleEntityRule#ruleSettings refers to the owning side field AppBundleEntityRuleSettings#rules which does not exist.
[FAIL] The entity-class AppBundleEntityRuleSettings mapping is invalid:
* The association AppBundleEntityRuleSettings#targets refers to the inverse side field AppBundleEntityTarget#rulesettings which does not exist.
* The association AppBundleEntityRuleSettings#departments refers to the inverse side field AppBundleEntityDepartment#rulesettings which does not exist.
* The association AppBundleEntityRuleSettings#ruleActions refers to the owning side field AppBundleEntityRuleAction#rulesettings which does not exist.
...
当我打电话时
console doctrine:schema:validate
有我的实体: 统治
/**
* @ORMOneToMany(targetEntity="RuleSettings",mappedBy="rules")
*/
private $ruleSettings;
规则设置
/**
* @ORMManyToOne(targetEntity="Rule")
* @ORMJoinColumn(name="ruleId",nullable=false)
*/
private $rule;
我在那里有什么问题?
mappedBy="rules"
不等于$rule
更改为mappedBy="rule"