Open LordDeveloper opened 1 year ago
Hey, This is my code:
payment = Payment.first_where({ 'transaction_id': req.get('trans_id'), 'order_id': req.get('order_id') })
Error: masoniteorm.exceptions.QueryException: (1054, "Unknown column 'payments.{'transaction_id': 'ff9db407-b55c-494b-a8af-a1944cedab0a', 'id': '1'}' in 'where clause'")
masoniteorm.exceptions.QueryException: (1054, "Unknown column 'payments.{'transaction_id': 'ff9db407-b55c-494b-a8af-a1944cedab0a', 'id': '1'}' in 'where clause'")
Until solve this, could you try this:
Model.where(field1, value1).where(field2, value2).first()
?
Referenc
Hi, Yes this is working correctly.
Hey, This is my code:
Error:
masoniteorm.exceptions.QueryException: (1054, "Unknown column 'payments.{'transaction_id': 'ff9db407-b55c-494b-a8af-a1944cedab0a', 'id': '1'}' in 'where clause'")