This may just be a 5PM Friday issue, but I'm scratching my head over here. I'm trying to associate a string of related entry id's represented by a variable with a new entry via the API. When I pass the variable, only the first one gets inserted into the DB. If I use the string they all get inserted. Here's the insert code:
$article_countries = "1021,1047,1076,1123"; $entry->getContent()->setAttributes(array( 'article_countries' => array( $articleCountries ) ));
Why is the string working where the variable isn't?