0

Trait Yiisoft\ActiveRecord\Trait\LazyLoadGuardTrait

Trait to detect N+1 queries caused by lazy loading of relations.

See also:

Method Details

Hide inherited methods

retrieveRelation() protected method

protected \Yiisoft\ActiveRecord\ActiveRecordInterface|array|null retrieveRelation ( string $name )
$name string

                protected function retrieveRelation(string $name): ActiveRecordInterface|array|null
{
    LazyLoadGuard::check($this, $name);
    return parent::retrieveRelation($name);
}