Using a shared helper method to streamline the generated code
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Alexey Chubar 2025-04-18 17:55:49 +03:00
parent 80cbb22dfc
commit 53661e92cb
2 changed files with 4 additions and 8 deletions

View File

@ -1,3 +1,6 @@
## v7.1.0
- Using a shared helper method to streamline the generated code
## v7.0.0
- Using a dedicated wrapper for i18n strings to streamline the generated code

View File

@ -319,14 +319,7 @@ base.SyncFields(ctx);
int fields_amount = {{fields_count(o)}};
var primary_id_mask = FieldsMask.MakeClean(fields_amount);
SetPrimaryFieldsChanged(ref primary_id_mask);
for(int i = 0; i < fields_amount; i++)
{
bool is_primary_id = primary_id_mask.IsDirty(i);
if(!is_primary_id && fields_mask.IsDirty(i))
return true;
}
return false;
return FieldsMask.CheckContentsChanged(fields_amount, ref primary_id_mask, ref fields_mask);
}
public void SetDirtyMask()