Skip to content

View Helpers

includedInObject()

includedInObject() — returns boolean

Available in: controller Category: Form Association Functions

Used as a shortcut to check if the specified IDs are a part of the main form object. This method should only be used for hasMany associations.

NameTypeRequiredDefaultDescription
objectNamestringyes—Name of the variable containing the parent object to represent with this form field.
associationstringyes—Name of the association set in the parent object to represent with this form field.
keysstringyes—Primary keys associated with this form field. Note that these keys should be listed in the order that they appear in the database table.