final public function insertIntoJunction($table, $masterValue, array $slaves, $masterColumn = self::PARAM_JUNCTION_MASTER_COLUMN, $slaveColumn = self::PARAM_JUNCTION_SLAVE_COLUMN)
    {
        // Avoid executing empty query
        if (!empty($slaves)) {
            return $this->db->insertIntoJunction($table, array($masterColumn, $slaveColumn), $masterValue, $slaves)
                            ->execute();
        } else {
            return false;
        }
    }
final public function insertIntoJunction($table, $masterValue, array $slaves, $masterColumn = self::PARAM_JUNCTION_MASTER_COLUMN, $slaveColumn = self::PARAM_JUNCTION_SLAVE_COLUMN)
    {
        // Avoid executing empty query
        if (!empty($slaves)) {
            return $this->db->insertIntoJunction($table, array($masterColumn, $slaveColumn), $masterValue, $slaves)
                            ->execute();
        } else {
            return false;
        }
    }
final public function insertIntoJunction ( $ table , $ masterValue , array $ slaves , $ masterColumn = self :: PARAM_JUNCTION_MASTER_COLUMN , $ slaveColumn = self :: PARAM_JUNCTION_SLAVE_COLUMN ) { // Avoid executing empty query if ( ! empty ( $ slaves ) ) { return $ this -> db -> insertIntoJunction ( $ table , array ( $ masterColumn , $ slaveColumn ) , $ masterValue , $ slaves ) -> execute ( ) ; } else { return false ; } }
Inserts a record into junction table

@param string $table Junction table name
@param string $masterValue
@param array $slaves
@param string $masterColumn Master column name
@param string $slaveColumn Slave column name
@return boolean
Inserts a record into junction table