Organization Type Query

The Organization Type Query supports all Active Query (opens new window) operations plus the following:

# Params

All of the standard Active Query (opens new window) public properties are available plus the following:

Property Type Description
handle string (opens new window), string[] (opens new window), null (opens new window) The handle that the resulting organization type(s) must have
fieldLayoutId integer (opens new window), integer[] (opens new window), null (opens new window) The field layout id that the resulting organization type(s) must have
organization string (opens new window), string[] (opens new window), integer (opens new window), integer[] (opens new window), Organization, Organization[], null (opens new window) The organization(s) that the resulting organization type(s) must be associated to
id integer (opens new window), integer[] (opens new window), null (opens new window) The id that the resulting organization type(s) must have
name string (opens new window), string[] (opens new window), null (opens new window) The name that the resulting organization type(s) must have
uid string (opens new window), string[] (opens new window), null (opens new window) The uid that the resulting organization type(s) must have
dateCreated string (opens new window), array (opens new window), DateTime (opens new window), null (opens new window) The creation date that the resulting organization type(s) must have
dateUpdated string (opens new window), array (opens new window), DateTime (opens new window), null (opens new window) The 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:

::: code

{% set query = craft.organizations.organizationTypes.getQuery() %}
{% do query.handle('foo').name('Bar') %}
use flipbox\organizations\Organizations;

$query = Organizations::getInstance()->getOrganizationTypes()->getQuery()
    ->handle('foo')
    ->name('Bar');

:::