Contao\Model\Collection::delete PHP Méthode

delete() public méthode

Delete the current model and return the number of affected rows
public delete ( ) : integer
Résultat integer The number of affected rows
    public function delete()
    {
        if ($this->intIndex < 0) {
            $this->first();
        }
        return $this->arrModels[$this->intIndex]->delete();
    }