{"action":"closed","issue":{"number":21,"created_at":"2011-10-04T15:12:53Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Reported by dien | February 25th, 2011 @ 10:55 PM\r\n\r\nif i use this script:\r\n\r\n```php\r\npubic function create(){\r\nfor ($i = 0; $i < 3; $i++) {\r\n      $this->Multi->create();\r\n      $this->Multi->save($this->data);\r\n} \r\n}\r\n```\r\n\r\nthen 3 rows is created with tiny_slug field is as same .\r\n\r\nAnd this line in Tinysluggable:\r\n\r\n```php\r\nprivate function __getNextSlug(&$Model) {\r\n    $new = '';\r\n    $prev = $Model->find('first', array(\r\n        'contain' => array(),\r\n        'fields' => array(\"{$Model->alias}.{$Model->tinySlug}\", \"{$Model->alias}.created\"),\r\n        'order' => \"{$Model->alias}.created DESC\"));\r\n\r\norder by created field , but in 1s , 10 fields can be created, i don't know if it is order right .\r\n```\r\n\r\nEdit I fixed this, it is because i set cacheQueries = true.\r\n","comments":0,"title":"TinySluggable can't use when create multi rows","updated_at":"2011-10-11T18:39:15Z","url":"https://api.github.com/repos/CakeDC/utils/issues/21","id":1814535,"assignee":null,"milestone":null,"closed_at":"2011-10-11T18:39:15Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/20ba0a0da6210dcc51760a4145a68c1c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/ajibarra","id":794722,"login":"ajibarra"},"html_url":"https://github.com/CakeDC/utils/issues/21","labels":[],"state":"closed"},"legacy":{"number":21,"action":"closed","issue":1814535}}