Hi,
I need to use alias of self model table. For ex: orders model
Orders model
self::query()
->where('Orders.status = :status:')
->bind(['status' => true])
->innerJoin("Users", "u.id = Orders.user_id", "u")
->execute();
I want to use o.
instead of Orders.
like following that:
self::query()
->where('o.status = :status:')
->bind(['status' => true])
->innerJoin("Users", "u.id = o.user_id", "u")
->execute();
How can i set alias of base query model?
Thanks