private function _makeSlug() { $name = $this->title; $ghost = new self(); $uniqifier = 0; do { $ghost->reset(); $slug = $this->_sluggify($name); $slug = $slug . ($uniqifier > 0 ? '-' . $uniqifier : ''); $ghost->loadBySlug($slug); $uniqifier++; if ($uniqifier >= 100) { throw new Ajde_Controller_Exception('Max recursion depth reached for setting slug'); } } while ($ghost->hasLoaded()); return $slug; }