I'm having an issue with a set of code. I'm not able to get the variable to display.
Here is the function
public function __construct($id = self::DHMeetingCommentCardNew, DHMeetingGroup $meetingGroup = null) { global $DB; if ($id == self::DHMeetingCommentCardNew) { var_dump($meetingGroup); $query = "INSERT INTO `" . self::DHMeetingCommentCardTable . "` (`UniqueID`, `MeetingGroup`) VALUES (UUID(), '{$meetingGroup['_id']}')"; $DB->query($query); $this->_id = $DB->lastID(); $this->_initializeNewCommentCard(); } else { $this->_id = intval($id); } }
I can't get the ID out of the $meetingGroup variable.
For the var_dump($meetingGroup) it dumps this.
NULL object(DHMeetingGroup)#10745 (1) { ["_id":"DHMeetingGroup":private]=> int(11086) }