When I went to access an argument in a CFC method, I was being told this didn’t exist. When I returned and output my argument struct, I found that it had been placedin another struct with a key of “1”..
For some reason, I now need to access my arguments in this CFC with arguments[1].name.
I am passing in a Form struct. If I dump this form struct before passing into the method, it is just it’s own struct. If I immediately return and output the arguments, it is now nested in this new struct… but I just can’t see where or why this would be happening. I am comparing it to other CFCs that I can access with just argument.???? and they look the same.
The CFC is persistent with ORM, but I have other persistent CFCs that still have arguments as normal.
Any ideas on what might be causing this woiuld be greatly appreciated.
Jason
If you are using myObject.myMethod( form ), this will exhibit the behavior you describe.
Try using