How can I access DiscussionModel data in DiscussionController Object?
I have following "problem": I want to access the info from table Media that are connected to a special discussion.
At first I thought I have to query the Media table, but I found out that all the relevant informations are already in the DiscussionController. Look at what I get when I do a
decho($sender) from any DiscussionController event:
As you can see
$sender->DiscussionModel->DataBase->_CurrentResultSet->_Result shows information about the connected Medias (in fact all relevant informations are already there!). But since they are protected, I do not have access to them
I do not want to query the db for information of the Media if it is already availabe in the DiscussionController, but I cannot find a way to use this information. Does anybody has a hint for me?