Closed debanshu411 closed 3 years ago
In case of Master Slave and when Ecommerce Module is enabled deleting records is throwing error.
Records should get deleted with out any issues.
Login to Admin. Open any object and try to delete the record.
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.
Moved to CMF repo where this issue belongs to.
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
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.