public static function get($db, $ref)
    {
        if (! static::isRef($ref)) {
            return null;
        }

        return $db->selectCollection($ref[static::$refKey])->findOne(['_id' => $ref[static::$idKey]]);
    }