Drupal Association members fund grants that make connections all over the world.
- A custom node with a line item reference field in it. The field is populated using rules.
- A user account I want to delete, using the "Delete the user and all of its content" option.
- This user is the author of at least one of the above mentioned custom nodes.
Trying to delete the user results in the following PHP fatal error:
Call to undefined method EntityDrupalWrapper::count() in /var/www/clients/client68/web260/web/profiles/commerce_kickstart/modules/commerce/modules/line_item/commerce_line_item.module on line 363
Interestingly, if I disable the line item manager widget for the field (so I choose "Do not show a widget"), the problem disappears.
Apart from this issue, the line item reference field works correctly: if I just view one these nodes, I can see the correct line item showing up, so this is probably not because of an incorrect reference.
Thanks for all your efforts developing Drupal Commerce! Keep up good work!