/** * * Executes an SQL statement and returns the number of affected rows. * * @param string $statement The SQL statement to execute. * * @return int The number of rows affected. * * @see http://php.net/manual/en/pdo.exec.php * */ public function exec($statement) { $result = $this->pdo->exec($statement); $this->logProfiles(__FUNCTION__); return $result; }