RedBeanPHP\Repository::processResidue PHP Méthode

processResidue() protected méthode

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
Résultat void
    protected function processResidue($ownresidue)
    {
        foreach ($ownresidue as $residue) {
            if ($residue->getMeta('tainted')) {
                $this->store($residue);
            }
        }
    }