{"action":"opened","issue":{"url":"https://api.github.com/repos/zelenin/yii2-slug-behavior/issues/10","labels_url":"https://api.github.com/repos/zelenin/yii2-slug-behavior/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/zelenin/yii2-slug-behavior/issues/10/comments","events_url":"https://api.github.com/repos/zelenin/yii2-slug-behavior/issues/10/events","html_url":"https://github.com/zelenin/yii2-slug-behavior/issues/10","id":54163334,"number":10,"title":"Неизменяемый slug","user":{"login":"loveorigami","id":98164,"avatar_url":"https://avatars.githubusercontent.com/u/98164?v=3","gravatar_id":"","url":"https://api.github.com/users/loveorigami","html_url":"https://github.com/loveorigami","followers_url":"https://api.github.com/users/loveorigami/followers","following_url":"https://api.github.com/users/loveorigami/following{/other_user}","gists_url":"https://api.github.com/users/loveorigami/gists{/gist_id}","starred_url":"https://api.github.com/users/loveorigami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loveorigami/subscriptions","organizations_url":"https://api.github.com/users/loveorigami/orgs","repos_url":"https://api.github.com/users/loveorigami/repos","events_url":"https://api.github.com/users/loveorigami/events{/privacy}","received_events_url":"https://api.github.com/users/loveorigami/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-13T08:35:23Z","updated_at":"2015-01-13T08:35:23Z","closed_at":null,"body":"Добрый день.\r\nВ Yii2.0.2 появилась возможность делать неизменяемый slug.\r\n```\r\nНеизменяемый slug\r\nЕсли вы используете yii\\behaviors\\SluggableBehavior, то теперь можете присвоить новому свойству immutable значение true. В этом случае однажды созданный slug не будет меняться при повторном сохранении модели. Это полезно для SEO: однажды проиндексированное содержимое останется по тому же URL.\r\nhttp://habrahabr.ru/post/247741/\r\n```\r\nустановил \r\n\r\n```php\r\n            [\r\n                'class' => 'Zelenin\\yii\\behaviors\\Slug',\r\n                'attribute'=>['id','title'],\r\n                'ensureUnique' => true,\r\n                'translit' => true,\r\n                'replacement' => '-',\r\n                'lowercase' => true,\r\n                'immutable' => true,\r\n                'transliterateOptions' => 'Russian-Latin/BGN;'\r\n            ],\r\n```\r\nно slug все равно меняется."}}