src/CRUDlex/MySQLData.php
protected function generateUUID()
        {
        $uuid = null;
        if ($this->useUUIDs) {
            $sql    = 'SELECT UUID() as id';
            $result = $this->database->fetchAssoc($sql);
            $uuid   = $result['id'];
        }
        return $uuid;
    }
protected function generateUUID()
        {
        $uuid = null;
        if ($this->useUUIDs) {
            $sql    = 'SELECT UUID() as id';
            $result = $this->database->fetchAssoc($sql);
            $uuid   = $result['id'];
        }
        return $uuid;
    }
protected function generateUUID ( ) { $ uuid = null ; if ( $ this -> useUUIDs ) { $ sql = 'SELECT UUID() as id' ; $ result = $ this -> database -> fetchAssoc ( $ sql ) ; $ uuid = $ result [ 'id' ] ; } return $ uuid ; }
Generates a new UUID.

@return string|null
the new UUID or null if this instance isn't configured to do so
Generates a new UUID .