public function run() { $result = parent::run(); try { $this->affectedRows = $this->connection->getDriver()->getAffectedRows(); } catch (DriverException $e) { $this->affectedRows = false; } return $result; }