Configure how Cycle ORM loads related entities with JOINs or separate queries.
// Source: https://github.com/cycle/orm | License: MIT | Copyright 2023 Spiral Scout
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace Cycle\ORM\Select\Options;
use Cycle\ORM\Select\ScopeInterface;
/**
* Load options for relations that support JoinableLoader features:
* loading method selection, table aliasing, and reusing joins.
*/
class JoinableLoadOptions extends LoadOptions
{
public function __construct(
/**
* Defines how to load relation data: within the same query (JOIN) or using a separate query.
*
* Example:
*
* method: LoadMethod::SingleQuery // INLOAD: join into the parent query
* method: LoadMethod::OuterQuery // POSTLOAD: separate SELEC
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key