Jump to content

jmclosas

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by jmclosas

  1. Hello, I have a problem when saving repeater. When I do the following I always have a duplicate entry.

                $notification = $user->notifications->getNew();
                $notification->messageid = $arr_data['messageid'];
                $notification->notificationid = $arr_data['notificationid'];
                $notification->users = $arr_data['userid'];
                $notification->date = time();
                $notification->save();
                $user->notifications->add($notification);
                $user->save();     

    What am I doing wrong?

    Thanks for feedback

     

×
×
  • Create New...