Model query().where('Id',1) convert key to lowercase #4004
-
Merhaba SQL bağlantısı kullanıyorum. ORM üzerinden query().where() içersinde Id yazmana rağmen otomatik olarak id oluyor. Bu yüzden çalıştıramıyorum. Model Filed Name is Id. my Base Model import { column, BaseModel } from '@IOC:Adonis/Lucid/Orm' export default class AppBaseModel extends BaseModel { |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Please write your message in English only. |
Beta Was this translation helpful? Give feedback.
-
Not exactly sure what you're after since I don't understand what you're asking but you can do
|
Beta Was this translation helpful? Give feedback.
-
Hello SQL connection. Although you write Id in the query().where() content over the ORM, it is automatically id. That's why I can't run it. Model File filed name is ID. |
Beta Was this translation helpful? Give feedback.
Hello SQL connection. Although you write Id in the query().where() content over the ORM, it is automatically id. That's why I can't run it. Model File filed name is ID.