Skip to content

Model Object

allErrors()

allErrors() — returns array

Available in: model Category: Error Functions

Returns an array of all the errors on the object.

It does this by storing instances of models that are associations, and not checking associations of those instances because they have already been checked.

NameTypeRequiredDefaultDescription
includeAssociationsbooleannofalse
seenErrorsarrayno[runtime expression]is a private argument not meant to be used by the user, the function uses this to ensure circular dependency avoidance.