Add to Relationship
-
Hello,
I try to add to a relationship field between User extended and a Course POD, using the code below and it is not working. The full code and other functionalities are well tested – only updating/adding more to this relationship is not. Could you please help?
$user_pod = pods('user', $student_id); foreach ($course_ids as $course_id) { $user_pod->add_to('acces_user_exp', $course_id); }
acces_user_exp is a relationship field with courses. (with one ‘s’)
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add to Relationship’ is closed to new replies.