Organization Type Query

The Organization Type Query supports all Active Query operations plus the following:

Params

All of the standard Active Query public properties are available plus the following:

PropertyTypeDescription
handlestring, string[], nullThe handle that the resulting organization type(s) must have
fieldLayoutIdinteger, integer[], nullThe field layout id that the resulting organization type(s) must have
organizationstring, string[], integer, integer[], Organization, Organization[], nullThe organization(s) that the resulting organization type(s) must be associated to
idinteger, integer[], nullThe id that the resulting organization type(s) must have
namestring, string[], nullThe name that the resulting organization type(s) must have
uidstring, string[], nullThe uid that the resulting organization type(s) must have
dateCreatedstring, array, DateTime, nullThe creation date that the resulting organization type(s) must have
dateUpdatedstring, array, DateTime, nullThe updated date that the resulting organization type(s) must have

Chain Setting

All of the params above can be accessed and chained together. The methods are named the same as the property.

Here is an example:

{% set query = craft.organizations.organizationTypes.getQuery() %}
{% do query.handle('foo').name('Bar') %}