EagerLoadPlan

Type
Class
Namespace
craft\elements\db
Inherits
craft\elements\db\EagerLoadPlan » yii\base\BaseObject
Implements
yii\base\Configurable
Since
3.5.0

AssetQuery represents a SELECT SQL statement for assets in a way that is independent of DBMS.

View source

# Public Properties

Property Description
alias string – The eager-loading alias
count boolean – Whether to only eager-load the total results
criteria array – The criteria that should be applied when eager-loading these elements
handle string – The eager-loading handle
nested craft\elements\db\EagerLoadPlan[] – Nested eager-loading plans to apply to the eager-loaded elements.

# alias

Type
string

The eager-loading alias

View source

# count

Type
boolean

Whether to only eager-load the total results

View source

# criteria

Type
array

The criteria that should be applied when eager-loading these elements

View source

# handle

Type
string

The eager-loading handle

View source

# nested

Type
craft\elements\db\EagerLoadPlan[]

Nested eager-loading plans to apply to the eager-loaded elements.

View source

# Public Methods

Method Description
__call() Calls the named method which is not a class method.
__construct() Constructor.
__get() Returns the value of an object property.
__isset() Checks if a property is set, i.e. defined and not null.
__set() Sets value of an object property.
__unset() Sets an object property to null.
canGetProperty() Returns a value indicating whether a property can be read.
canSetProperty() Returns a value indicating whether a property can be set.
className() Returns the fully qualified name of this class.
hasMethod() Returns a value indicating whether a method is defined.
hasProperty() Returns a value indicating whether a property is defined.
init() Initializes the object.