onyxframework / sql

A delightful SQL ORM ☺️
https://api.onyxframework.com/sql
MIT License
91 stars 7 forks source link

Pass params as args instead of array to wherish #19

Closed vladfaust closed 6 years ago

vladfaust commented 6 years ago

Actual:

.where("users.id = ? AND payments.status = ?", [self.id, Payment::Status::Confirmed])

Expected:

.where("users.id = ? AND payments.status = ?", self.id, Payment::Status::Confirmed)