Method |
Description |
|
addError ( $message, string $attribute = 'errors' ) |
Adds error to result model. |
|
addErrors ( array $messages, string $attribute = 'errors' ) |
Adds multiple errors to result model. |
|
beginTransaction ( ) |
Starts DB transaction. |
|
commitTransaction ( ) |
Commits transaction. |
|
getDbService ( ) : DbConnection |
|
|
getTransaction ( ) : CDbTransaction |
Returns current transaction. |
|
hasErrors ( string $attribute = 'errors' ) : boolean |
Returns if there are errors or not. |
|
rollbackTransaction ( ) |
Rolls back transaction. |
|