I have created a model from a mysql view as User_view. Model gives proper records for listing. I have also another model which is created from normal mysql table as User model. When I tried to give relationship in User model to User_view model, it gives me error. So can I create relationship to View model or not?
Yes, it returns an object. In other model i have used this type of relationship to fetch records and it is working fine. Just issue arise only when mysql View related model is used. Can not understand why such error happens?
Hello my friend I agree with Fabrizio, there’s something wrong with your code that is not in the Post. Check again with very slowly, cause the message is simple and clear. It does not return the object, so can not reach the property. If you’re in a case sensitive system check out for that too. Please post again, that I’ll be waiting to help you…