code: static public function generatePhalcon($modelName, $field, $length = 16)
      {
          do {
              $generate = self::generate($length);
          } while (self::phalconQuery($modelName, $field, $generate));
          
          return $generate;
      }
docs: Phalcon ORM generate method
  
  @param string $modelName
  @param string $field
  @param int $length
  @return string