$toTableName
$toTableName : string
Allows to define Many to One Columns.
Example: Book <> Author. Field "author_id" in table "books" is the Many to One Column.
$filterDefinitions : array<mixed,\Alddesign\Crudkit\Classes\FilterDefinition>
__construct(string $name, string $label, string $type, string $toTableName, string $columnName, array<mixed,string> $secondaryColumnNames = array(), string $pageId = '', array<mixed,\Alddesign\Crudkit\Classes\FilterDefinition> $filterDefinitions = array(), array $options = array(), boolean $manualInput = false, boolean $ajax = false, array $ajaxOptions = null)
Creates a new Many to One Column
| string | $name | |
| string | $label | |
| string | $type | See Class SQLColumn for types |
| string | $toTableName | Curdkit table name |
| string | $columnName | Primary relations column |
| array<mixed,string> | $secondaryColumnNames | Secondary columns which will be shown to the user (more = slower) |
| string | $pageId | The drilldown page id |
| array<mixed,\Alddesign\Crudkit\Classes\FilterDefinition> | $filterDefinitions | (optional) Array of filter definitions to describe the relation. |
| array | $options | (optional) See Class SQLColumn for options |
| boolean | $manualInput | Allows the user to input custom data manually (without checking) |
| boolean | $ajax | Ajax powered value selection |
| array | $ajaxOptions | Options for the ajax |
setAjaxOptions(\Alddesign\Crudkit\Classes\AjaxOptions $ajaxOptions = null) : void
| \Alddesign\Crudkit\Classes\AjaxOptions | $ajaxOptions |