cfaddict/hyrule — pull request #3 by mikehodgson (2012-04-26 17:10:37+00:00)
Title: Patch for getEntityName function

This small patch fixes an issue I was having where the "unique" constraint was throwing an exception. The root cause was that the getEntityName function was trying to guess the entity name from the fullname property. This doesn't work in cases where your CFC filename is capitalized differently from the actual entity name.

Example: Filename is 'user.cfc', but the component is defined with entityName="User", hyrule incorrectly guesses that the entity name is "user".

This now tries to use the entityName property before falling back to fullname.