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
What about to call static toArray method using static::toArray() instead of self::toArray()?
In this way it is possible to extend the base class and use a data source different from class' constants list. I know it is a corner scenario, but doing so you are able to use DB as a dynamic data source.
The text was updated successfully, but these errors were encountered:
What about to call static toArray method using
static::toArray()
instead ofself::toArray()
?In this way it is possible to extend the base class and use a data source different from class' constants list. I know it is a corner scenario, but doing so you are able to use DB as a dynamic data source.
The text was updated successfully, but these errors were encountered: