Closed bradfordcondon closed 6 years ago
WD tripal_chado: chado_select_record: the foreign key definition for 'dbxref_id' on table 'cvterm' returned no results where the definition [error]
supplied was Array
(
[db_id] => Array
(
[name] => local
)
[accession] => ssr_results
)
[site http://default] [TRIPAL ERROR] [TRIPAL_CHADO] chado_select_record: the foreign key definition for 'dbxref_id' on table 'cvterm' returned no results where the definition supplied was Array( [db_id] => Array ( [name] => local ) [accession] => ssr_results)
Illegal string offset '!message' tripal_ssr.install:172 [warning]
$ssr_bundle_term = tripal_insert_cvterm([
'name' => 'SSR results',
'accession' => 'ssr_results',
'def' => 'An SSR prediction analysis.',
'cv_name' => 'local',
]);
var_dump($ssr_bundle_term);
dumps:
object(stdClass)#899 (7) {
["name"]=>
string(11) "SSR results"
["cvterm_id"]=>
string(5) "55477"
["cv_id"]=>
string(1) "2"
["cvname"]=>
string(5) "local"
["dbname"]=>
string(8) "internal"
["db_id"]=>
string(1) "9"
["accession"]=>
string(11) "SSR results"
}
the dbxref that does exist is:
select * from chado.dbxref where db_id = 9;
58071 9 SSR results
399 9 comment
drupal=>
so, the accession becomes the name, even though we hand it an accession.
I'm just using vanilla analyses on HWG.
Need to create an SSR analysis bundle