pimcore / customer-data-framework

Customer Data Framework community bundle adds capability for management of customer data to Pimcore.
https://pimcore.com/docs/platform/Customer_Management_Framework/
Other
81 stars 93 forks source link

In case of Master Slave delete is throwing error #176

Closed debanshu411 closed 3 years ago

debanshu411 commented 3 years ago

Bug Report

In case of Master Slave and when Ecommerce Module is enabled deleting records is throwing error.

Expected behavior

Records should get deleted with out any issues.

Actual behavior

Screenshot-from-2020-12-14-16-56-59

Steps to reproduce

Login to Admin. Open any object and try to delete the record.

Code Issue

vendor/pimcore/customer-management-framework-bundle/src/SegmentAssignment/SegmentAssigner/SegmentAssigner.php (Line No 56, 68, 76)

public function __construct(string $segmentAssignmentTable, string $segmentAssignmentQueueTable, string $segmentAssignmentIndexTable, Connection $db, TypeMapperInterface $typeMapper) { $this->setSegmentAssignmentTable($segmentAssignmentTable); $this->setSegmentAssignmentQueueTable($segmentAssignmentQueueTable); $this->setSegmentAssignmentIndexTable($segmentAssignmentIndexTable); $this->setDb($db); $this->setTypeMapper($typeMapper); }

Out here the $db shouid be an instance of Db\ConnectionInterface.

brusch commented 3 years ago

Moved to CMF repo where this issue belongs to.