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
The documentation in examles allow to used named placeholders in where clause like this:
// bind 'zim_val' to the :zim placeholder
->where('zim = :zim', ['zim' => 'zim_val'])
But this will not work since named placeholders don't update bind_values internal property. The ->where() method only works with ?-placeholders which actually not documented at all. I've lost 2 hours trying to figure it out.
The documentation in examles allow to used named placeholders in where clause like this:
But this will not work since named placeholders don't update
bind_values
internal property. The->where()
method only works with ?-placeholders which actually not documented at all. I've lost 2 hours trying to figure it out.This will print SQL query and empty array of bind values.
Possible workaround could be using of additional
bindValues()
:or using ?-placeholder:
But both variants looks dirty and not match documentation.
P.S. Is this repo abandoned?
The text was updated successfully, but these errors were encountered: