It looks like you're new here. If you want to get involved, click one of these buttons!
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:
<br /> DEBUG: DiscussionController Object ( ... [DiscussionModel] => DiscussionModel Object ( [Watching] => [Data] => [Database] => Gdn_Database Object ( [ClassName] => Gdn_Database [_CurrentResultSet:Gdn_Database:private] => Gdn_DataSet Object ( [Connection] => PDO Object ( ) [_Cursor:Gdn_DataSet:private] => -1 [_DatasetType:protected] => array [_EOF:protected] => [_PDOStatement:Gdn_DataSet:private] => [_Result:protected] => Array (  => Array ( [MediaID] => 5 ...
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?