Question : $object->functionName() not working in symfony framework.( call to a function on nonobject variable ) What might be the reason ?
Answer : The possible reason for this problem may be that you are applying the function over the list of objects. Just check your action file and see that you are using doSelect() or doSelectOne(). Use only the function which returns single element and not the array.