/** * Get a list containing the IDs of each member team of the conversation * * @return int[] An array of team IDs */ public function getTeamIds() { return parent::fetchIds("WHERE `conversation` = ?", "i", $this->id, "team_conversations", "team"); }
/** * Get a list containing the IDs of each member team of the group * * @return integer[] An array of team IDs */ public function getTeamIds() { return parent::fetchIds("WHERE `group` = ?", "i", $this->id, "team_groups", "team"); }
/** * {@inheritDoc} */ protected function assignLazyResult($result) { $this->ipAddresses = parent::fetchIds("WHERE ban_id = ?", 'i', array($this->getId()), "banned_ips", "ip_address"); }