public function deleteByDeleteAfter(\DateTime $dateTime)
    {
        $connection  = $this->getConnection();
        $deleteAfter = $this->formatDate($dateTime);
        $connection->delete($this->getMainTable(), $connection->quoteInto('delete_after <= ?', $deleteAfter));
    }
public function deleteByDeleteAfter(\DateTime $dateTime)
    {
        $connection  = $this->getConnection();
        $deleteAfter = $this->formatDate($dateTime);
        $connection->delete($this->getMainTable(), $connection->quoteInto('delete_after <= ?', $deleteAfter));
    }
public function deleteByDeleteAfter ( \ DateTime $ dateTime ) { $ connection = $ this -> getConnection ( ) ; $ deleteAfter = $ this -> formatDate ( $ dateTime ) ; $ connection -> delete ( $ this -> getMainTable ( ) , $ connection -> quoteInto ( 'delete_after <= ?' , $ deleteAfter ) ) ; }
Delete all link data that are having a "delete_after" column which is lteq than the one passed in parameter.

@param \DateTime $dateTime The date
Delete all link data that are having a delete_after column which is lteq than the one passed in parameter .