APIv4 - Support pseudoconstant lookups
[civicrm-core.git] / Civi / Api4 / Generic / DAODeleteAction.php
index 79bc911c4af38f50e74a700b7971011c9299cfcf..666e702993a1e78823cc90d769c291480f68e12f 100644 (file)
@@ -38,7 +38,7 @@ class DAODeleteAction extends AbstractBatchAction {
       throw new \API_Exception('Cannot delete ' . $this->getEntityName() . ' with no "where" parameter specified');
     }
 
-    $items = $this->getObjects();
+    $items = $this->getBatchRecords();
     if ($items) {
       $result->exchangeArray($this->deleteObjects($items));
     }