Fr3nch13/CakePHP Utilities

AssociationsNormalizerTrait

Contains methods for parsing the associated tables array that is typically passed to a save operation

Table of Contents

Methods

_normalizeAssociations()  : array<string|int, mixed>
Returns an array out of the original passed associations list where dot notation is transformed into nested arrays so that they can be parsed by other routines

Methods

_normalizeAssociations()

Returns an array out of the original passed associations list where dot notation is transformed into nested arrays so that they can be parsed by other routines

protected _normalizeAssociations(array<string|int, mixed>|string $associations) : array<string|int, mixed>
Parameters
$associations : array<string|int, mixed>|string

The array of included associations.

Return values
array<string|int, mixed>

An array having dot notation transformed into nested arrays


        
On this page

Search results