S
S
Stepan2015-01-28 12:16:50
Yii
Stepan, 2015-01-28 12:16:50

(Yii2) What does error mean when creating role with rbac?

Exception 'yii\db\IntegrityException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'login' for key 'PRIMARY'
The SQL being executed was: INSERT INTO `auth_item` (`name`, `type`, `description`, `rule_name`, `data`, `created_at`, `updated_at`) VALUES ('login', 2, NULL, NULL, NULL, 1422436280, 1422436280)'

in C:\OpenServer\domains\work\editor\vendor\yiisoft\yii2\db\Schema.php:532

Error Info:
Array
(
    [0] => 23000
    [1] => 1062
    [2] => Duplicate entry 'login' for key 'PRIMARY'
)

I do mana
habrahabr.ru/post/235485
Gives an error on yii rbac/init
What could be the matter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2015-01-28
@xoma2

habrahabr.ru/post/235485/#comment_8202153

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question