src/Database/PublishRecords.php
public function publish()
    {
        // Find the bundle
        $this->bundles = db_query('SELECT name, bundle_id FROM chado_bundle
                             JOIN tripal_bundle ON tripal_bundle.id = chado_bundle.bundle_id
                             WHERE data_table = :data_table', [':data_table' => $this->data_table])->fetchAll();

        if (empty($this->bundles)) {
            throw new Exception("Unable to find bundles for $this->data_table. Publishing failed!");
        }

        // Perform the publishing
        foreach ($this->bundles as $bundle) {
            // Publish Records
            try {
                $published = $this->tripalChadoPublishRecords($bundle->name, $this->ids);
            } catch (Exception $exception) {
                $this->delete();
                throw $exception;
            }

            $this->published[] = $published;
        }
    }
public function publish()
    {
        // Find the bundle
        $this->bundles = db_query('SELECT name, bundle_id FROM chado_bundle
                             JOIN tripal_bundle ON tripal_bundle.id = chado_bundle.bundle_id
                             WHERE data_table = :data_table', [':data_table' => $this->data_table])->fetchAll();

        if (empty($this->bundles)) {
            throw new Exception("Unable to find bundles for $this->data_table. Publishing failed!");
        }

        // Perform the publishing
        foreach ($this->bundles as $bundle) {
            // Publish Records
            try {
                $published = $this->tripalChadoPublishRecords($bundle->name, $this->ids);
            } catch (Exception $exception) {
                $this->delete();
                throw $exception;
            }

            $this->published[] = $published;
        }
    }
Perform the publishing.

@throws Exception