Accessing a Relationship Field in BOTH Directions
-
I’ve examined this page, and I still have a question:
https://docs.pods.io/tutorials/get-values-from-a-relationship-field/The page reads without qualification that
$pod->field("relationship_field")
will return a multi-dimensional array. I’m not convinced that it is telling the truth. If the field “relationship_field” defines multiple related items (if “Multiple” is checked in the Pods options), the array will of course be multi-dimensional. My question is: If the “relationship_field” defines only a single related item, will$pod->field("relationship_field")
still return a multi-dimensional array?It might help to var_dump the results of two relationship fields that are defined as each other’s bidirectional field.
The page I need help with: [log in to see the link]
- The topic ‘Accessing a Relationship Field in BOTH Directions’ is closed to new replies.