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
Simply findFirst will always return a model object even when hydration arrays is passed in. This is useful when overloading the static find methods to use a factory to initialize specific types.
The workaround is simply to call find and to set it up in a more verbose manner as this accepts the hydration option or to call toArray on the returned model if it is not abstract.
The text was updated successfully, but these errors were encountered:
Simply findFirst will always return a model object even when hydration arrays is passed in. This is useful when overloading the static find methods to use a factory to initialize specific types.
The workaround is simply to call
find
and to set it up in a more verbose manner as this accepts the hydration option or to calltoArray
on the returned model if it is not abstract.The text was updated successfully, but these errors were encountered: