Fixed XF\Entity\Report missing setter for Content

DragonByte Tech

Well-known member
Affected version
2.2.8pl1
The following method is missing from XF\Entity\Report:
PHP:
    public function setContent(Entity $content = null)
    {
        $this->_getterCache['Content'] = $content;
    }

This affects performance for scenarios where you need to batch pre-load content and insert it into the Report entity.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.9).

Change log:
Include a content setter for report entities
There may be a delay before changes are rolled out to the XenForo Community.
 
Top Bottom