is there a way to pull "current table alias" from ...
# box-products
d
is there a way to pull "current table alias" from a quick scope? we of course know tablename, but it might be renamed in a "where scope", so far I have
Copy code
getInstance("foo").whereHas("bar", (barInstance) => {
	var name = barInstance.getFrom(); // treating barInstance as a QuickBuilder <: QueryBuilder
	writedump(name); // "bartable bartable_1"
	barInstance.where(...)
})
where we'd like to know we need to ref it as
bartable_1
if we put a selectRaw or similar in the scope