Welcome Guest, Not a member yet? Register   Sign In
date auto getter in Entity ignore my date format
#4

Perhaps it is a dumb newbie ideas but i dare :

Wouldn't that be more logic to check the method at the end of the __get() so if it is a date it would be already mutated ?

Or to directly return the result of the method if there is a method ?

From the comment i guess the __get() has been written after the __set() method and perhaps the execution logic order has not been inverted ?
Reply


Messages In This Thread
RE: date auto getter in Entity ignore my date format - by tomasoma - 09-18-2020, 03:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB