extend VerttragsbestandteilLib to keep track on modified columns and only update dv, vbs and gbs when they differ from the status in the db

This commit is contained in:
Harald Bamberger
2023-07-26 16:27:34 +02:00
parent 2b4a4d12a9
commit ac5d6071cd
19 changed files with 230 additions and 104 deletions
@@ -121,7 +121,7 @@ EOSQL;
{
foreach( $rows as $row ) {
$tmpgb = new Gehaltsbestandteil();
$tmpgb->hydrateByStdClass($row);
$tmpgb->hydrateByStdClass($row, true);
$gehaltsbestandteile[] = $tmpgb;
}
}
@@ -139,7 +139,7 @@ EOSQL;
if( null !== ($row = getData($query)) )
{
$gehaltsbestandteil = new Gehaltsbestandteil();
$gehaltsbestandteil->hydrateByStdClass($row[0]);
$gehaltsbestandteil->hydrateByStdClass($row[0], true);
}
return $gehaltsbestandteil;
@@ -97,7 +97,7 @@ EOSQL;
foreach( $data as $row ) {
try
{
$vertragsbestandteile[] = VertragsbestandteilFactory::getVertragsbestandteil($row);
$vertragsbestandteile[] = VertragsbestandteilFactory::getVertragsbestandteil($row, true);
}
catch (Exception $ex)
{
@@ -129,7 +129,7 @@ EOSQL;
$data = getData($query)[0];
try
{
$vertragsbestandteil = VertragsbestandteilFactory::getVertragsbestandteil($data); // TODO add decryption
$vertragsbestandteil = VertragsbestandteilFactory::getVertragsbestandteil($data, true); // TODO add decryption
}
catch (Exception $ex)
{