Fix BAO class namespace issues
This commit is contained in:
parent
82952a0162
commit
c7c766d926
10 changed files with 16 additions and 22 deletions
|
@ -294,7 +294,7 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop {
|
|||
/**
|
||||
* Get associated products.
|
||||
*
|
||||
* @return array[Civi\Twingle\Shop\BAO\TwingleProduct]
|
||||
* @return list<CRM_Twingle_BAO_TwingleProduct>
|
||||
* @throws \Civi\Core\Exception\DBQueryException
|
||||
* @throws \Civi\Twingle\Shop\Exceptions\ProductException
|
||||
*/
|
||||
|
|
|
@ -18,7 +18,6 @@ declare(strict_types = 1);
|
|||
use CRM_Twingle_ExtensionUtil as E;
|
||||
use Civi\Twingle\Exceptions\BaseException;
|
||||
use Civi\Twingle\Shop\Exceptions\LineItemException;
|
||||
use Civi\Twingle\Shop\BAO\TwingleProduct;
|
||||
|
||||
class CRM_Twingle_Submission {
|
||||
|
||||
|
@ -503,7 +502,7 @@ class CRM_Twingle_Submission {
|
|||
// Try to find the TwingleProduct with its corresponding PriceField
|
||||
// for this product
|
||||
try {
|
||||
$price_field = TwingleProduct::findByExternalId($product['id']);
|
||||
$price_field = CRM_Twingle_BAO_TwingleProduct::findByExternalId($product['id']);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
Civi::log()->error(E::LONG_NAME .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue