Skip to content

Debug you must!

Compare
Choose a tag to compare
@TCB13 TCB13 released this 05 Sep 14:58
· 10 commits to master since this release
  • Debug the final pipelines built by the query builder.
QueryBuilder::$pipelineDebug = true; // Enable pipeline debugging!

// Run a query
$result = (new QueryBuilder())->collection("xyz")
            ->where("active", true)
            ->findAll()
            ->toArray();

// Fetch the pipeline built by the Query Builder
var_dump(QueryBuilder::getLastPipelineLog()); // Get the pipeline built for the last query
var_dump(QueryBuilder::getPipelineLogs()); // Get all pipelines ever built by the query builder