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
Hey guys, I'm using the up to date calcinai 2.2.4 but the fromStringArray method from Model class is not working as expected.
When passing the second argument as true, it should override all the values as the previous versions (Calcinai 1), but that method is only changing _data and not _dirty as well, so it's not impacted on the API.
If you check any setter, the methods are calling propertyUpdated for updating the _dirty property and then the _data:
So updating the Model for doing the same, solved the problem and worked like the previous versions:
Right now we are overriding that method in our own class, but hope it helps others and also a fix could be released soon for that.
Thank you!
The text was updated successfully, but these errors were encountered:
tiaguinhor
added a commit
to tiaguinhor/xero-php
that referenced
this issue
Dec 15, 2020
Hey guys, I'm using the up to date calcinai
2.2.4
but the fromStringArray method fromModel
class is not working as expected.When passing the second argument as
true
, it should override all the values as the previous versions (Calcinai 1), but that method is only changing_data
and not_dirty
as well, so it's not impacted on the API.If you check any setter, the methods are calling
propertyUpdated
for updating the_dirty
property and then the_data
:So updating the
Model
for doing the same, solved the problem and worked like the previous versions:Right now we are overriding that method in our own class, but hope it helps others and also a fix could be released soon for that.
Thank you!
The text was updated successfully, but these errors were encountered: