RedBeanPHP\Repository::processResidue PHP Method

processResidue() protected method

A residue is a bean in an own-list that stays where it is. This method checks if there have been any modification to this bean, in that case the bean is stored once again, otherwise the bean will be left untouched.
protected processResidue ( array $ownresidue ) : void
$ownresidue array list to process
return void
    protected function processResidue($ownresidue)
    {
        foreach ($ownresidue as $residue) {
            if ($residue->getMeta('tainted')) {
                $this->store($residue);
            }
        }
    }