Solar_Sql_Model_Record::getInvalid()

public string|array Solar_Sql_Model_Record::getInvalid ( string $key = NULL )

Returns the validation failure message for one or more properties, including the messages on related records and collections.

Parameters

  • (string) $key: Return the message for this property; if empty, returns messages for all invalid properties.

Returns

  • (string|array)

Description

Returns the validation failure message for one or more properties, including the messages on related records and collections.



Local