static public function generateDoctrine2(\Doctrine\ORM\EntityManager $entityManager, $entityName, $field, $length = 16)
    {    
        do {
            $generate = self::generate($length);
        } while (self::doctrine2Query($entityManager, $entityName, $field, $generate));
        
        return $generate;
    }