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).

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments