You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
Looking through the code I found that de method delete on the class Zend\Db\RowGateway\RowGatewayAbstract does not return anything even when on its documentation says should return an integer.
The code looks like this:
if ($result->getAffectedRows() == 1) {
// detach from database
$this->primaryKeyData = null;
}
}
But should be:
$rowsAffected = $result->getAffectedRows();
if ($rowsAffected == 1) {
// detach from database
$this->primaryKeyData = null;
}
return $rowsAffected;
}
The text was updated successfully, but these errors were encountered:
Looking through the code I found that de method delete on the class Zend\Db\RowGateway\RowGatewayAbstract does not return anything even when on its documentation says should return an integer.
The code looks like this:
if ($result->getAffectedRows() == 1) {
// detach from database
$this->primaryKeyData = null;
}
}
But should be:
$rowsAffected = $result->getAffectedRows();
if ($rowsAffected == 1) {
// detach from database
$this->primaryKeyData = null;
}
return $rowsAffected;
}
The text was updated successfully, but these errors were encountered: