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

Getting an Entry and saving the same entry wipeout the relations

Developer Preview

Reinos's avatar
Reinos
79 posts
9 years ago
Reinos's avatar Reinos

By getting an entry and save it without do any changes or just the title wipeout the relations.

modify the title

$entry = ee('Model')->get('ChannelEntry')->filter('entry_id', 1)->first();
$entry->title = 'updated Title';
$entry->save();

do nothing, just update

$entry = ee('Model')->get('ChannelEntry')->filter('entry_id', 1)->first();
$entry->save();

This was a problem in EE2 (https://support.ellislab.com/bugs/detail/19817/relationship-data-getting-cleared-when-using-channel-entry-api) and it seems now also in EE3 as a problem.

       
Wes Baker's avatar
Wes Baker
343 posts
9 years ago
Wes Baker's avatar Wes Baker

What version of ExpressionEngine did this occur in? It should be fixed as of ExpressionEngine 3.2.0.

       
Reinos's avatar
Reinos
79 posts
9 years ago
Reinos's avatar Reinos

Seems to be fixed in version 3.2.x

Thanks Wes for your support.

       

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.