library/Extlib/Generator.php
static public function doctrine($tableName, $field, $length = 16)
    {
        do {
            $generate = self::generate($length);
        } while (self::doctrineQuery($tableName, $field, $generate));
        
        return $generate;
    }
static public function doctrine($tableName, $field, $length = 16)
    {
        do {
            $generate = self::generate($length);
        } while (self::doctrineQuery($tableName, $field, $generate));
        
        return $generate;
    }
Doctrine v1.2 generate method


@param string $tableName
@param string $field
@param string $length
@return string
@throws Extlib\Exception