public function setDeleteAfter(int $customerId, \DateTime $dateTime)
    {
        $connection  = $this->getConnection();
        $deleteAfter = $this->formatDate($dateTime);
        $connection->update(
            $this->getMainTable(),
            ['delete_after' => $deleteAfter],
            $connection->quoteInto('customer_id = ?', $customerId)
        );
    }
public function setDeleteAfter(int $customerId, \DateTime $dateTime)
    {
        $connection  = $this->getConnection();
        $deleteAfter = $this->formatDate($dateTime);
        $connection->update(
            $this->getMainTable(),
            ['delete_after' => $deleteAfter],
            $connection->quoteInto('customer_id = ?', $customerId)
        );
    }
public function setDeleteAfter ( int $ customerId , \ DateTime $ dateTime ) { $ connection = $ this -> getConnection ( ) ; $ deleteAfter = $ this -> formatDate ( $ dateTime ) ; $ connection -> update ( $ this -> getMainTable ( ) , [ 'delete_after' => $ deleteAfter ] , $ connection -> quoteInto ( 'customer_id = ?' , $ customerId ) ) ; }
Set the delete after field for a given customer Id.

@param int       $customerId The customer Id
@param \DateTime $dateTime   The date to set
Set the delete after field for a given customer Id .