Error: Call to undefined method Drupal\commerce_product\Event\ProductVariationEvent::getVariations() in Drupal\eca_commerce\Plugin\ECA\Event\EcaEvent->getData() (line 958 of modules/contrib/eca_commerce/src/Plugin/ECA/Event/EcaEvent.php).
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3462493. -->
Reported by: [freelock](https://www.drupal.org/user/313537)
Related to !11
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Error: Call to undefined method Drupal\commerce_product\Event\ProductVariationEvent::getVariations() in Drupal\eca_commerce\Plugin\ECA\Event\EcaEvent->getData() (line 958 of modules/contrib/eca_commerce/src/Plugin/ECA/Event/EcaEvent.php). </p>
<p>This method is undefined. The actual method is "getProductVariation", not "getVariations".</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Create a model using the "Product Variation is updated" event. Clear cache.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>I think under 1.x, this just failed silently. After upgrading to 2.x, it's breaking the entire site!</p>
issue