[Catalyst] Refresh user object
Duncan Garland
duncan.garland at motortrak.com
Sat Jun 27 12:43:43 GMT 2015
Hi,
How do you force the user object to update if you know it has been changed
elsewhere?
It looks like I need something along the lines of:
my $changed_user = $c->find_user( { id => $user_id } );
$c->user($changed_user);
$c->persist_user;
but it's very clumsy and doesn't work anyway.
Thanks
Duncan
--
The information contained in this message is for the intended addressee
only and may contain confidential and/or privileged information. If you are
not the intended addressee, please delete this message and notify the
sender; do not copy or distribute this message or disclose its contents to
anyone. Any views or opinions expressed in this message are those of the
author and do not necessarily represent those of Motortrak Limited or of
any of its associated companies. No reliance may be placed on this message
without written confirmation from an authorised representative of the
company.
Registered in England 3098391 V.A.T. Registered No. 667463890
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20150627/6f74c529/attachment.htm>
More information about the Catalyst
mailing list