/** * Creates a table name based on a types array. * Manages the get the correct name for the linking table for the * types provided. * * @todo find a nice way to decouple this class from QueryWriter? * * @param array $types 2 types as strings * * @return string $table table */ public function getTable($types) { return RedBean_QueryWriter_AQueryWriter::getAssocTableFormat($types); }
/** * Determines whether the bea has a shared list based on * schema inspection from realtime schema or cache. * * @param string $type bean type to get list for * @param string $target type of list you are looking for * * @return boolean */ protected function hasSharedList($type, $target) { return in_array(RedBean_QueryWriter_AQueryWriter::getAssocTableFormat(array($type, $target)), $this->tables); }