- Issue created by @dmitryl
- 🇺🇸United States tr Cascadia
In the future please search the issue queue before posting. There is already an open issue for this which you could have helped with 💬 Cannot execute "Entity is of bundle" condition on a referenced entity Closed: duplicate .
Also please export your Rule as a YML file, because describing what you used for inputs is not precise or complete. It's hard to tell if you made a mistake in your input.
I'm leaving this open as a bug because there are more details than that older issue.
the error here,
Call to undefined method Drupal\Core\TypedData\DataReferenceDefinition::setBundles()
, is happening because this data value is supposed to be anEntityDataDefinition
, not aDataReferenceDefinition
. There probably needs to be a call toDataReferenceDefinition::getTargetDefinition()
somewhere to dereference the entity. - 🇺🇸United States dmitryl Austin
Thank you for the clarification. The referenced issue is with
8.x-3.0-alpha7
version though, which I filtered out, but I'll keep that in mind. Attaching the rule config. - 🇨🇳China splash112
This issue might be a duplicate of the following:
https://www.drupal.org/project/rules/issues/3059402 🐛 Set data action in referenced entity. Needs work
- 🇮🇳India Shreya_98
Hi @dmitryl,
I have fixed this issue and also provided patch for this issue . Kindly review the patch file.