Mark Scherer
Mark Scherer
@lorenzo What do you think we should do based on the open PR?
@lorenzo https://github.com/cakephp/cakephp/pull/9712
You can `->toArray()` and then do the key check. So small workaround. Having the method directly is of course very cheap to add 🙂 I am fine with adding it....
You can also have a base entity and use a trait for what u need See e.g. https://github.com/dereuromark/cakephp-shim/blob/master/src/Model/Entity/ReadTrait.php If all entities extend that base class, a community plugin Version might...
Should we close this as works-for-us?
Should this be moved to 5.x milestone?
If it is just about internal, I wouldn't go that way. The main issue is the deprecation usage IMO.
Maybe int|null then only?
Then we should revisit this for 5.x then.