library/Extlib/Generator.php
static public function generatePhalcon($modelName, $field, $length = 16)
    {
        do {
            $generate = self::generate($length);
        } while (self::phalconQuery($modelName, $field, $generate));
        
        return $generate;
    }
static public function generatePhalcon($modelName, $field, $length = 16)
    {
        do {
            $generate = self::generate($length);
        } while (self::phalconQuery($modelName, $field, $generate));
        
        return $generate;
    }
Phalcon ORM generate method

@param string $modelName
@param string $field
@param int $length
@return string