[Help] Related models are not saved if reusable is not set to true #15588
rtmotiondev
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Phalcon 4.1.2 / PHP 7.4.16
I can't seem to save related models when reusable is set to false. Is anyone else experiecing this?
$user->Info->veg_status = $params->vegStatus;
$user->Info->aboutme = $params->aboutme;
$user->Info->relationship = $params->relationship;
$user->save();
I've tried everything single attempt
$user->getInfo()->save();
$user->Info->save();
$user->save();
It only works with reusable set to true but then it's caching related models which I don't want.
Beta Was this translation helpful? Give feedback.
All reactions