We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Relationship data getting cleared when using Channel Entry API

Development and Programming

webstasy's avatar
webstasy
3 posts
12 years ago
webstasy's avatar webstasy

When I use:

ee()->api_channel_entries->save_entry($data, $channel_id, $entry_id);

with data such as this:

$data = array( ‘title’ => ‘Breaking News Story!’, ‘entry_date’ => ‘1256953732’, ‘edit_date’ => ‘1351653729’, ‘field_id_6’ => ‘Some data’, ‘field_ft_6’ => ‘none’, ‘field_id_19’ => ‘More data’, ‘field_ft_19’ => ‘xhtml’ );

Any relationships that were present in the entry that was updated gets deleted. How can one prevent this?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.