Returns the first error of every attribute in the model.
public getFirstErrors ( ) : array | ||
return | array | the first errors. The array keys are the attribute names, and the array values are the corresponding error messages. An empty array will be returned if there is no error. |