/**
  * @param int $status
  * @param int $accountId
  *
  * @return bool|int
  */
 protected function addAccountHistory($status, $accountId)
 {
     $historyInsertValues = ['newsletter_account_id' => $accountId, 'date' => $this->date->toSQL(), 'action' => $status];
     return $this->accountHistoryRepository->insert($historyInsertValues);
 }
Beispiel #2
0
 /**
  * @param string $value
  * @return string
  */
 public function doEscape($value)
 {
     return $this->date->toSQL($value);
 }