-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hi,
I am getting relationship data using
$relationshipsData = $record['relationships'];
foreach ($relationshipsData as $relationship) {
print "relation: " . $relationship['name']['display'];
}
but how can I get the type of relation.
how to use following function of this class and which classname should be give as first parameter?
public static function from_dict($clsname, $d)
{
// Extend Field.from_dict and also load the name from the dict.
$relationship = PiplApi_Field::from_dict('PiplApi_Relationship', $d);
if (!empty($relationship->name))
{
$relationship->name = PiplApi_Field::from_dict('PiplApi_Name', $relationship->name);
}
return $relationship;
}
Thanks
Metadata
Metadata
Assignees
Labels
No labels