/** @inheritdoc */ public function deleteById($id) { if (is_array($id)) { /* probably this is complex PK */ $pk = $id; } else { $pk = [$this->_idFieldName => $id]; } $result = $this->_repoGeneric->deleteEntityByPk($this->_entityName, $pk); return $result; }