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
In my opinion, the conversion is not necessary. If you want to convert an array, then it should be in the database as JSON and json, json-array should be used. The concept of an object is too big, therefore it requires a custom Cast
It's probably worth adding @deprecated and replacing saving and conversion with JSON
https://codeigniter4.github.io/CodeIgniter4/models/entities.html#property-casting
The
object
handler seems to expect the property to be set to an array.CodeIgniter4/system/Entity/Cast/ObjectCast.php
Lines 22 to 25 in 0cd3993
CodeIgniter4/tests/system/Entity/EntityTest.php
Lines 439 to 449 in 0cd3993
However, when setting an array, we cannot save that Entity to the database.
How is this handler used in the first place?
The text was updated successfully, but these errors were encountered: