getMetaData Bug

The getMetaData function returns metadata about a CFC. It appears as if it returns a struct, heck, you can even cfdump it and will see "struct" as the type. However, the function is returning an object, and if you attempt to use a struct function on the result of getMetaData(), you will get an error. If you need to examine the result, you will have to use normal dot notation or array functions (if for example you want to search the functions portion of metadata).

Archived Comments

Comment 1 by Matt Liotta posted on 10/29/2003 at 7:22 PM

I believe if you Duplicate() the result of GetMetaData() you will get a real struct.

Comment 2 by Raymond Camden posted on 10/29/2003 at 7:25 PM

Nope, no luck. Well, again, it _looks_ like a struct, but the struct funcs don't work on it.