Commit 6cfc9496 by Alexander Makarov

Added CUBRID support for throwing integrity exception

parent 7764086c
......@@ -65,6 +65,14 @@ class Schema extends \yii\db\Schema
];
/**
* @var array map of DB errors and corresponding exceptions
* If left part is found in DB error message exception class from the right part is used.
*/
public $exceptionMap = [
'Operation would have caused one or more unique constraint violations' => '\yii\db\IntegrityException',
];
/**
* @inheritdoc
*/
public function releaseSavepoint($name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment