I think the issue was by ths following , I had a similar error a couple of weeks back. After querying with a model php would get an error but log absolutely nothing and I was never able to log it in the end. In my case, it was due to an invalid namespace usage. You could attempt to test if the class exists to check that. If it does not I would say there's an incorrect auto-loading of the model's namespace where your loader registers namespaces and/or the usage call at the top of the script is incorrect.
how to enable stacktrace log in jboss soa 5.3 to get rid of Enable more detailed logging to see the entire stacktrace