From 866a98be68e1b34d3564ebe2f7af35c47fcf2065 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 23 Jan 2022 20:41:22 -0500 Subject: [PATCH] Contact BAO - Deprecate unused function --- CRM/Core/DAO.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Core/DAO.php b/CRM/Core/DAO.php index 38daa4389d..2f9809a6c6 100644 --- a/CRM/Core/DAO.php +++ b/CRM/Core/DAO.php @@ -1528,12 +1528,15 @@ LIKE %1 /** * Delete the object records that are associated with this contact. * + * @deprecated + * * @param string $daoName * Name of the dao object. * @param int $contactId * Id of the contact to delete. */ public static function deleteEntityContact($daoName, $contactId) { + CRM_Core_Error::deprecatedFunctionWarning('APIv4'); $object = new $daoName(); $object->entity_table = 'civicrm_contact'; -- 2.25.1