This is probably something really ease but I can not get it to work.
I have a model (A) with a relation to an other model (. I want to fill my grid with the data from A and from B. But I can not access the data from B. For some reason when I try to access data from model B, it says I am trying to get a property of a non object. Strange is is though. If I print A->B i see B as my object including with the data.
How do I show data from model B in my grid view? Using $a->getBcontent->id is not working.
Hmmm, I got it fixed. I deleted the tables and re-created them in the database and defined the relations again and now it works. I think I screwed around with the table structure to much before. It must have messed something up.