Welcome Guest, Not a member yet? Register   Sign In
How to use Query Builder SubQuery in Model
#2

Your last request will not work as you want, because for each ticket there will be as many lines created as there are joins found.

If you're using subqueries via a closure, you'll either need to import the query builder class or remove the type hint.
PHP Code:
use CodeIgniter\Database\BaseBuilder;
// or 
static function ($builder) {
 
// ... subquery

Reply


Messages In This Thread
RE: How to use Query Builder SubQuery in Model - by iRedds - 05-27-2023, 09:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB